From: Craig Andrews Date: Tue, 15 Sep 2009 21:17:36 +0000 (-0400) Subject: 304 responses should not have a Content-Length header. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d7e13e847dbce55ad8ed017f02e1ac8420881e4e;p=quix0rs-gnu-social.git 304 responses should not have a Content-Length header. --- diff --git a/lib/action.php b/lib/action.php index 06cdbdfe0f..ebef4f9e43 100644 --- a/lib/action.php +++ b/lib/action.php @@ -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); }