mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 966385. Stop using the deprecated GetInputEncoding in XHR code. r=peterv
This commit is contained in:
parent
c9285776b2
commit
7195ec693d
@ -2401,14 +2401,7 @@ GetRequestBody(nsIDOMDocument* aDoc, nsIInputStream** aResult,
|
||||
nsACString& aCharset)
|
||||
{
|
||||
aContentType.AssignLiteral("application/xml");
|
||||
nsAutoString inputEncoding;
|
||||
aDoc->GetInputEncoding(inputEncoding);
|
||||
if (!DOMStringIsNull(inputEncoding)) {
|
||||
CopyUTF16toUTF8(inputEncoding, aCharset);
|
||||
}
|
||||
else {
|
||||
aCharset.AssignLiteral("UTF-8");
|
||||
}
|
||||
aCharset = aDoc->GetDocumentCharacterSet();
|
||||
|
||||
// Serialize to a stream so that the encoding used will
|
||||
// match the document's.
|
||||
|
Loading…
Reference in New Issue
Block a user