Merge pull request #1389 from valtron/patch-1
[rewrite] Case-insensitivize `method` in `m.request`
This commit is contained in:
commit
f6541e4826
1 changed files with 1 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ module.exports = function($window, Stream) {
|
||||||
function request(args) {
|
function request(args) {
|
||||||
var stream = Stream()
|
var stream = Stream()
|
||||||
if (args.initialValue !== undefined) stream(args.initialValue)
|
if (args.initialValue !== undefined) stream(args.initialValue)
|
||||||
|
args.method = args.method.toUpperCase()
|
||||||
|
|
||||||
var useBody = typeof args.useBody === "boolean" ? args.useBody : args.method !== "GET" && args.method !== "TRACE"
|
var useBody = typeof args.useBody === "boolean" ? args.useBody : args.method !== "GET" && args.method !== "TRACE"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue