[Pkg-javascript-commits] [node-static] 22/151: fix 304 condition

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Tue Jan 7 23:17:56 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 8fddcf37889629ffd58e2d6b000e43e1c6fe4b2f
Author: cloudhead <self at cloudhead.net>
Date:   Tue Aug 3 23:15:12 2010 -0400

    fix 304 condition
---
 lib/node-static.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/node-static.js b/lib/node-static.js
index de94f38..24296fa 100644
--- a/lib/node-static.js
+++ b/lib/node-static.js
@@ -171,7 +171,7 @@ this.Server.prototype.respond = function (pathname, files, stat, req, res, finis
     // If both the "If-Modified-Since" and "If-None-Match" headers
     // match the conditions, send a 304 Not Modified.
     if (req.headers['if-none-match'] === headers['Etag'] &&
-        Date.parse(req.headers['if-modified-since']) > mtime) {
+        Date.parse(req.headers['if-modified-since']) >= mtime) {
         finish(304, headers);
     } else if (req.method === 'HEAD') {
         finish(200, 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