don't send undefined body

This commit is contained in:
Leo Horie 2016-11-10 10:12:05 -05:00
parent a442b9961c
commit 4dd66a7e65
4 changed files with 61 additions and 57 deletions

View file

@ -54,7 +54,7 @@ module.exports = function($window, Stream) {
}
}
if (useBody) xhr.send(args.data)
if (useBody && (args.data != null)) xhr.send(args.data)
else xhr.send()
return stream