Merge pull request #1389 from valtron/patch-1

[rewrite] Case-insensitivize `method` in `m.request`
This commit is contained in:
Leo Horie 2016-11-05 09:00:18 -04:00 committed by GitHub
commit f6541e4826

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"