[Pkg-javascript-commits] [node-static] 44/151: Allow headers to be overwritten
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 0a09e39741635ce5d57e7747fbc61a9a3bf78d32
Author: Sean Braithwaite <brapse at gmail.com>
Date: Thu Jul 21 22:27:20 2011 -0400
Allow headers to be overwritten
---
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 ef8ad5a..f1ed889 100644
--- a/lib/node-static.js
+++ b/lib/node-static.js
@@ -200,9 +200,9 @@ this.Server.prototype.respond = function (pathname, status, _headers, files, sta
headers['Content-Type'] = mime.contentTypes[path.extname(files[0]).slice(1)] ||
'application/octet-stream';
- for (var k in headers) { _headers[k] = headers[k] }
+ for (var k in _headers) { headers[k] = _headers[k] }
- res.writeHead(status, _headers);
+ res.writeHead(status, headers);
// If the file was cached and it's not older
// than what's on disk, serve the cached version.
--
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