From 59345d119393630af5d429853540434cfeab1817 Mon Sep 17 00:00:00 2001 From: Philip Hofstetter Date: Sat, 24 Apr 2010 15:54:15 +0200 Subject: [PATCH] correct ETag header syntax According to section 3.11 of RFC 2616, the ETag header should be quoted-string which, according to 2.2 in the same document is a string enclosed in " --- lib/paperboy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/paperboy.js b/lib/paperboy.js index 17f0feb..505bc94 100755 --- a/lib/paperboy.js +++ b/lib/paperboy.js @@ -27,7 +27,7 @@ exports.streamFile = function (filepath, headerFields, stat, res, req, emitter) contentType += '; charset=' + charset; headerFields['Content-Type'] = contentType; - etag = stat.ino + '-' + stat.size + '-' + Date.parse(stat.mtime); + etag = '"' + stat.ino + '-' + stat.size + '-' + Date.parse(stat.mtime) +'"'; headerFields['ETag'] = etag; var statCode;