[Pkg-javascript-commits] [dojo] 134/149: fixes #18475, error handling for http errors codes in node.js

David Prévot taffit at moszumanska.debian.org
Sat Feb 27 03:13:56 UTC 2016


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

taffit pushed a commit to branch master
in repository dojo.

commit 5798e8908b44aae938a3baca2a24a4c8fd147d71
Author: jbomer <jbomer at centrum.cz>
Date:   Thu Feb 4 17:08:36 2016 -0700

    fixes #18475, error handling for http errors codes in node.js
---
 request/node.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/request/node.js b/request/node.js
index f7197a9..630688d 100644
--- a/request/node.js
+++ b/request/node.js
@@ -92,7 +92,7 @@ define([
 					clearTimeout(timeout);
 				}
 				response.text = body.join('');
-				if (util.checkStatus(response.status)){
+				if (!util.checkStatus(response.status)){
 					def.reject({
 						message: 'http response code ' +  response.status,
 						response: response

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



More information about the Pkg-javascript-commits mailing list