Add the charset right after the type, before all other params, if there is no
existing charset in the type. Bug 413974, r=biesi, sr=sicking, a=beltzner git-svn-id: svn://10.0.0.236/trunk@246775 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2218,12 +2218,8 @@ nsXMLHttpRequest::Send(nsIVariant *aBody)
|
||||
if (NS_FAILED(rv)) {
|
||||
contentType.AssignLiteral("application/xml");
|
||||
specifiedCharset.Truncate();
|
||||
haveCharset = PR_FALSE;
|
||||
}
|
||||
|
||||
if (!haveCharset) {
|
||||
charsetStart = charsetEnd = contentType.Length();
|
||||
}
|
||||
}
|
||||
|
||||
// If the content-type the page set already has a charset parameter,
|
||||
// and it's the same charset, up to case, as |charset|, just send the
|
||||
|
||||
Reference in New Issue
Block a user