[Pkg-javascript-commits] [node-static] 46/151: pass all headers to

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Tue Jan 7 23:17:57 UTC 2014


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

tonnerre-guest pushed a commit to branch master
in repository node-static.

commit 61ed9c98eb99b659712959b18d1354ff2c6ee2a1
Author: cloudhead <alexis at cloudhead.io>
Date:   Fri Jul 22 12:35:43 2011 -0400

    pass all headers to
---
 lib/node-static.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/node-static.js b/lib/node-static.js
index f1ed889..1188e8a 100644
--- a/lib/node-static.js
+++ b/lib/node-static.js
@@ -209,7 +209,7 @@ this.Server.prototype.respond = function (pathname, status, _headers, files, sta
         if (this.cache && (key in exports.store) &&
             exports.store[key].stat.mtime >= stat.mtime) {
             res.end(exports.store[key].buffer);
-            finish(status, _headers);
+            finish(status, headers);
         } else {
             this.stream(pathname, files, new(buffer.Buffer)(stat.size), res, function (e, buffer) {
                 if (e) { return finish(500, {}) }
@@ -218,7 +218,7 @@ this.Server.prototype.respond = function (pathname, status, _headers, files, sta
                     buffer:    buffer,
                     timestamp: Date.now()
                 };
-                finish(status, _headers);
+                finish(status, headers);
             });
         }
     }

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



More information about the Pkg-javascript-commits mailing list