mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 966385. Stop using the deprecated GetInputEncoding in XHR code. r=peterv
This commit is contained in:
parent
cb114f6309
commit
d7cbbd0050
@ -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