[Pkg-javascript-commits] [node-mocks-http] 221/296: chore(lib/node): remove unnecessary comments

Thorsten Alteholz alteholz at moszumanska.debian.org
Mon Feb 8 18:13:38 UTC 2016


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

alteholz pushed a commit to branch master
in repository node-mocks-http.

commit 1388aa246388b201c7d097301c368a317e6cecd5
Author: Johnny Estilles <johnny.estilles at agentia.asia>
Date:   Thu May 7 20:46:39 2015 +0800

    chore(lib/node): remove unnecessary comments
---
 lib/node/_http_incoming.js | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/lib/node/_http_incoming.js b/lib/node/_http_incoming.js
index 3c84858..c2a3d25 100644
--- a/lib/node/_http_incoming.js
+++ b/lib/node/_http_incoming.js
@@ -28,19 +28,14 @@ function IncomingMessage() {
   this._pendingIndex = 0;
   this.upgrade = null;
 
-  // request (server) only
   this.url = '';
   this.method = null;
 
-  // response (client) only
   this.statusCode = null;
   this.statusMessage = null;
 
-  // flag for backwards compatibility grossness.
   this._consuming = false;
 
-  // flag for when we decide that this message cannot possibly be
-  // read by the user, so there's no point continuing to handle it.
   this._dumped = false;
 }
 util.inherits(IncomingMessage, Stream.Readable);
@@ -90,8 +85,6 @@ IncomingMessage.prototype._addHeaderLine = function(field, value, dest) {
       }
       break;
 
-    // list is taken from:
-    // https://mxr.mozilla.org/mozilla/source/netwerk/protocol/http/src/nsHttpHeaderArray.cpp
     case 'content-type':
     case 'content-length':
     case 'user-agent':
@@ -104,14 +97,12 @@ IncomingMessage.prototype._addHeaderLine = function(field, value, dest) {
     case 'from':
     case 'location':
     case 'max-forwards':
-      // drop duplicates
       if (util.isUndefined(dest[field])) {
         dest[field] = value;
       }
       break;
 
     default:
-      // make comma-separated list
       if (!util.isUndefined(dest[field])) {
         dest[field] += ', ' + value;
       } else {

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



More information about the Pkg-javascript-commits mailing list