billywhizz
2/3/2010 - 10:31 AM

http.diff

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);
   }
 };