Bug 866915, update XHR.send to follow the spec, r=sicking

--HG--
extra : rebase_source : ee7ce01fa3a71db5327e42f40a725db99efbe345
This commit is contained in:
Olli Pettay 2013-05-15 14:48:59 +03:00
parent f60f1ed2e1
commit 974ce415aa

View File

@ -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;