Merge remote-tracking branch 'origin/rewrite' into rewrite

# Conflicts:
#	mithril.min.js
This commit is contained in:
Leo Horie 2016-11-10 10:13:21 -05:00
commit 95194e8c15
3 changed files with 35 additions and 33 deletions

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"