[rewrite] Case-insensitivize method in m.request

This commit is contained in:
valtron 2016-11-04 22:16:44 -06:00 committed by GitHub
parent ca53ae8caa
commit bcab77696c

View file

@ -11,6 +11,7 @@ module.exports = function($window, Stream) {
function request(args) {
var stream = Stream()
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"