mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 866915, update XHR.send to follow the spec, r=sicking
--HG-- extra : rebase_source : ee7ce01fa3a71db5327e42f40a725db99efbe345
This commit is contained in:
parent
f60f1ed2e1
commit
974ce415aa
@ -2647,7 +2647,8 @@ nsXMLHttpRequest::Send(nsIVariant* aVariant, const Nullable<RequestBody>& aBody)
|
||||
mLoadLengthComputable = false;
|
||||
mLoadTotal = 0;
|
||||
if ((aVariant || !aBody.IsNull()) && httpChannel &&
|
||||
!method.EqualsLiteral("GET")) {
|
||||
!method.LowerCaseEqualsLiteral("get") &&
|
||||
!method.LowerCaseEqualsLiteral("head")) {
|
||||
|
||||
nsAutoCString charset;
|
||||
nsAutoCString defaultContentType;
|
||||
|
Loading…
Reference in New Issue
Block a user