[Pkg-javascript-commits] [node-stream-http] 54/208: Fix withCredentials flag for fetch implementation

Bastien Roucariès rouca at moszumanska.debian.org
Sun Aug 13 13:39:28 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 d700e6d8d914eac09d26a3649001f893e2c3c910
Author: John Hiesey <john at hiesey.com>
Date:   Sun Jul 12 20:41:20 2015 -0700

    Fix withCredentials flag for fetch implementation
---
 lib/request.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/request.js b/lib/request.js
index e82578d..25de62f 100644
--- a/lib/request.js
+++ b/lib/request.js
@@ -109,7 +109,7 @@ ClientRequest.prototype._onFinish = function () {
 			headers: headers,
 			body: body,
 			mode: 'cors',
-			credentials: opts.credentials ? 'include' : 'omit'
+			credentials: opts.withCredentials ? 'include' : 'omit'
 		}).then(function (response) {
 			self._fetchResponse = response
 			self._connect()

-- 
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