]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
304 responses should not have a Content-Length header.
authorCraig Andrews <candrews@integralblue.com>
Tue, 15 Sep 2009 21:17:36 +0000 (17:17 -0400)
committerCraig Andrews <candrews@integralblue.com>
Tue, 15 Sep 2009 21:17:36 +0000 (17:17 -0400)
lib/action.php

index 06cdbdfe0f70685b212df21b40cba962dd5bb8a4..ebef4f9e4399d5db186f9d988aeee057b10a07bb 100644 (file)
@@ -900,7 +900,6 @@ class Action extends HTMLOutputter // lawsuit
                         !$etag ||
                         $this->_hasEtag($etag, $if_none_match)) {
                         header('HTTP/1.1 304 Not Modified');
-                        header('Content-Length: 0');
                         // Better way to do this?
                         exit(0);
                     }
@@ -919,7 +918,6 @@ class Action extends HTMLOutputter // lawsuit
             header('ETag: ' . $etag);
             if($if_none_match && $this->_hasEtag($etag, $if_none_match)) {
                 header('HTTP/1.1 304 Not Modified');
-                header('Content-Length: 0');
                 // Better way to do this?
                 exit(0);
             }