[Pkg-javascript-commits] [node-stream-http] 127/208: Style fixup

Bastien Roucariès rouca at moszumanska.debian.org
Sun Aug 13 13:39:35 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 c9183cd2ad5dfc8d8359f00cf3958c31b37f4961
Author: John Hiesey <john at hiesey.com>
Date:   Tue Mar 1 15:05:17 2016 -0800

    Style fixup
---
 lib/response.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/response.js b/lib/response.js
index dbf6f2c..af2e4ca 100644
--- a/lib/response.js
+++ b/lib/response.js
@@ -67,11 +67,11 @@ var IncomingMessage = exports.IncomingMessage = function (xhr, response, mode) {
 			var matches = header.match(/^([^:]+):\s*(.*)/)
 			if (matches) {
 				var key = matches[1].toLowerCase()
-				if (key == 'set-cookie') {
+				if (key === 'set-cookie') {
 					if (self.headers[key] === undefined) {
-						self.headers[key] = new Array();
+						self.headers[key] = []
 					}
-					self.headers[key].push(matches[2]);
+					self.headers[key].push(matches[2])
 				} else if (self.headers[key] !== undefined) {
 					self.headers[key] += ', ' + matches[2]
 				} else {

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