r9806 - helma-ng/trunk/modules/helma/middleware

[email protected] Tue, 19 May 2009 10:54:40 +0200 (CEST)
Newsgroups gmane.comp.java.helma.cvs
Message-ID <20090519085440.D788F3D0D6@mia>
Author: hannes
Date: 2009-05-19 10:54:40 +0200 (Tue, 19 May 2009)
New Revision: 9806

Modified:
   helma-ng/trunk/modules/helma/middleware/etag.js
Log:
Unset Content-Length header in 304 response

Details at http://dev.helma.org/trac/helma/changeset/9806

Modified: helma-ng/trunk/modules/helma/middleware/etag.js
===================================================================
--- helma-ng/trunk/modules/helma/middleware/etag.js	2009-05-18 14:45:00 UTC (rev 9805)
+++ helma-ng/trunk/modules/helma/middleware/etag.js	2009-05-19 08:54:40 UTC (rev 9806)
@@ -1,5 +1,6 @@
 require('core/string');
 require('core/array');
+include('hashp');
 
 export('handleRequest');
 
@@ -22,6 +23,7 @@
         headers["ETag"] = digest;
         if (etags && etags.contains(digest)) {
             // return not-modified response
+            HashP.unset(headers, 'Content-Length');
             return [304, headers, []];
         }
     }