[rewrite] Case-insensitivize method in m.request
This commit is contained in:
parent
ca53ae8caa
commit
bcab77696c
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