Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 85381f0e3d | |||
| 3bea2a493f | |||
| 016f4be96f | |||
| 9e5e75b5ff | |||
| 031b8aab89 |
+2
-2
@@ -93,7 +93,7 @@ ClientRequest.prototype._onFinish = function () {
|
||||
|
||||
var headersObj = self._headers
|
||||
var body
|
||||
if (opts.method === 'POST' || opts.method === 'PUT') {
|
||||
if (opts.method === 'POST' || opts.method === 'PUT' || opts.method === 'PATCH') {
|
||||
if (capability.blobConstructor) {
|
||||
body = new global.Blob(self._body.map(function (buffer) {
|
||||
return buffer.toArrayBuffer()
|
||||
@@ -120,7 +120,7 @@ ClientRequest.prototype._onFinish = function () {
|
||||
}).then(function (response) {
|
||||
self._fetchResponse = response
|
||||
self._connect()
|
||||
}).then(undefined, function (reason) {
|
||||
}, function (reason) {
|
||||
self.emit('error', reason)
|
||||
})
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "stream-http",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.2",
|
||||
"description": "Streaming http in the browser",
|
||||
"main": "index.js",
|
||||
"repository": {
|
||||
|
||||
Reference in New Issue
Block a user