Skip to content

Instantly share code, notes, and snippets.

@billywhizz
Created February 3, 2010 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billywhizz/293534 to your computer and use it in GitHub Desktop.
Save billywhizz/293534 to your computer and use it in GitHub Desktop.
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