Skip to content

Commit

Permalink
Etag var should never have been global
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewvc committed Jun 10, 2010
1 parent 59345d1 commit 640a3a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/paperboy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ exports.streamFile = function (filepath, headerFields, stat, res, req, emitter)
charset = exports.charsets[contentType];

process.nextTick( function() {

if (charset)
contentType += '; charset=' + charset;
headerFields['Content-Type'] = contentType;

etag = '"' + stat.ino + '-' + stat.size + '-' + Date.parse(stat.mtime) +'"';
var etag = '"' + stat.ino + '-' + stat.size + '-' + Date.parse(stat.mtime) +'"';
headerFields['ETag'] = etag;

var statCode;
Expand Down

0 comments on commit 640a3a3

Please sign in to comment.