[Pkg-javascript-commits] [node-stream-http] 178/208: Fix Edge fetch errors

Bastien Roucariès rouca at moszumanska.debian.org
Sun Aug 13 13:39:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-stream-http.

commit 8e1f534a8a6579f05d4dda34d80b2eda56109332
Author: John Hiesey <john at hiesey.com>
Date:   Tue Jan 17 18:39:22 2017 -0800

    Fix Edge fetch errors
---
 lib/request.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/request.js b/lib/request.js
index 7d26d0b..07a33d0 100644
--- a/lib/request.js
+++ b/lib/request.js
@@ -119,8 +119,8 @@ ClientRequest.prototype._onFinish = function () {
 
 		global.fetch(self._opts.url, {
 			method: self._opts.method,
-			headers: headers,
-			body: body,
+			headers: new global.Headers(headers),
+			body: body || undefined,
 			mode: 'cors',
 			credentials: opts.withCredentials ? 'include' : 'same-origin'
 		}).then(function (response) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-stream-http.git



More information about the Pkg-javascript-commits mailing list