Skip to content

Commit

Permalink
fix http header case
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Aug 2, 2010
1 parent 42344f7 commit 9323cad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/node-static.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9323cad

Please sign in to comment.