mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 893316 - Http.jsm doesn't listen to method option parameter. r=Mossop
This commit is contained in:
parent
2ff40915ff
commit
40b041016b
@ -35,7 +35,7 @@ function httpRequest(aUrl, aOptions) {
|
||||
.createInstance(Ci.nsIXMLHttpRequest);
|
||||
xhr.mozBackgroundRequest = true; // no error dialogs
|
||||
let hasPostData = "postData" in aOptions;
|
||||
xhr.open("aMethod" in aOptions ? aMethod :
|
||||
xhr.open("method" in aOptions ? aOptions.method :
|
||||
(hasPostData ? "POST" : "GET"), aUrl);
|
||||
xhr.channel.loadFlags = Ci.nsIChannel.LOAD_ANONYMOUS | // don't send cookies
|
||||
Ci.nsIChannel.LOAD_BYPASS_CACHE |
|
||||
|
Loading…
Reference in New Issue
Block a user