[Pkg-javascript-commits] [node-static] 14/151: fix http header case
Tonnerre Lombard
tonnerre-guest at moszumanska.debian.org
Tue Jan 7 23:17:55 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 9323cadbedd28bc61dafbdc5a17d864936e450de
Author: cloudhead <self at cloudhead.net>
Date: Mon Aug 2 16:32:56 2010 -0400
fix http header case
---
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 0c35fdb..6bb154a 100644
--- a/lib/node-static.js
+++ b/lib/node-static.js
@@ -34,7 +34,7 @@ this.Server = function (root, options) {
}
if (this.cache !== false) {
- this.defaultHeaders['cache-control'] = 'max-age=' + this.cache;
+ this.defaultHeaders['Cache-Control'] = 'max-age=' + this.cache;
}
this.defaultHeaders['Server'] = serverInfo;
@@ -136,7 +136,7 @@ this.Server.prototype.respond = function (file, stat, req, res, finish) {
headers['Etag'] = JSON.stringify([stat.ino, stat.size, mtime].join('-'));
headers['Date'] = new(Date)().toUTCString();
- headers['last-modified'] = new(Date)(stat.mtime).toUTCString();
+ headers['Last-Modified'] = new(Date)(stat.mtime).toUTCString();
// Conditional GET
// If both the "If-Modified-Since" and "If-None-Match" 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