Created
February 3, 2010 10:31
-
-
Save billywhizz/293534 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/http.js b/lib/http.js | |
old mode 100644 | |
new mode 100755 | |
index dcb152e..dba892f | |
--- a/lib/http.js | |
+++ b/lib/http.js | |
@@ -88,11 +88,10 @@ IncomingMessage.prototype.resume = function () { | |
IncomingMessage.prototype._addHeaderLine = function (field, value) { | |
if (field in this.headers) { | |
- // TODO Certain headers like 'Content-Type' should not be concatinated. | |
- // See https://www.google.com/reader/view/?tab=my#overview-page | |
- this.headers[field] += ", " + value; | |
+ this.headers[field].push(value); | |
} else { | |
- this.headers[field] = value; | |
+ this.headers[field] = []; | |
+ this.headers[field].push(value); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment