don't send undefined body
This commit is contained in:
parent
a442b9961c
commit
4dd66a7e65
4 changed files with 61 additions and 57 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue