mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 465455. Use the charset we'll send in the header to encode with. r+sr=sicking, a=beltzner
This commit is contained in:
parent
f8a74d33fa
commit
c07a04cc4f
@ -2494,9 +2494,8 @@ nsXMLHttpRequest::Send(nsIVariant *aBody)
|
||||
rv = storStream->GetOutputStream(0, getter_AddRefs(output));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Empty string for encoding means to use document's current
|
||||
// encoding.
|
||||
rv = serializer->SerializeToStream(doc, output, EmptyCString());
|
||||
// Make sure to use the encoding we'll send
|
||||
rv = serializer->SerializeToStream(doc, output, charset);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
output->Close();
|
||||
|
Loading…
Reference in New Issue
Block a user