mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
Issue #1442 - Part 10a - Unify body extraction in Fetch/Beacon/XHR. https://bugzilla.mozilla.org/show_bug.cgi?id=1329298 Pre-requisite for Part 11.
This commit is contained in:
parent
3979e4847c
commit
a4146b60a4
15 changed files with 439 additions and 447 deletions
|
|
@ -398,7 +398,7 @@ FormData::Constructor(const GlobalObject& aGlobal,
|
|||
|
||||
NS_IMETHODIMP
|
||||
FormData::GetSendInfo(nsIInputStream** aBody, uint64_t* aContentLength,
|
||||
nsACString& aContentType, nsACString& aCharset)
|
||||
nsACString& aContentTypeWithCharset, nsACString& aCharset)
|
||||
{
|
||||
FSMultipartFormData fs(NS_LITERAL_CSTRING("UTF-8"), nullptr);
|
||||
|
||||
|
|
@ -419,7 +419,7 @@ FormData::GetSendInfo(nsIInputStream** aBody, uint64_t* aContentLength,
|
|||
}
|
||||
}
|
||||
|
||||
fs.GetContentType(aContentType);
|
||||
fs.GetContentType(aContentTypeWithCharset);
|
||||
aCharset.Truncate();
|
||||
*aContentLength = 0;
|
||||
NS_ADDREF(*aBody = fs.GetSubmissionBody(aContentLength));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue