Canonicalize options.method in m.request
This commit is contained in:
parent
5c543342d7
commit
ce20520f3a
1 changed files with 1 additions and 0 deletions
|
|
@ -1027,6 +1027,7 @@ var m = (function app(window, undefined) {
|
||||||
var extract = xhrOptions.extract || function(xhr) {
|
var extract = xhrOptions.extract || function(xhr) {
|
||||||
return xhr.responseText.length === 0 && deserialize === JSON.parse ? null : xhr.responseText
|
return xhr.responseText.length === 0 && deserialize === JSON.parse ? null : xhr.responseText
|
||||||
};
|
};
|
||||||
|
xhrOptions.method = (xhrOptions.method || 'GET').toUpperCase();
|
||||||
xhrOptions.url = parameterizeUrl(xhrOptions.url, xhrOptions.data);
|
xhrOptions.url = parameterizeUrl(xhrOptions.url, xhrOptions.data);
|
||||||
xhrOptions = bindData(xhrOptions, xhrOptions.data, serialize);
|
xhrOptions = bindData(xhrOptions, xhrOptions.data, serialize);
|
||||||
xhrOptions.onload = xhrOptions.onerror = function(e) {
|
xhrOptions.onload = xhrOptions.onerror = function(e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue