summaryrefslogtreecommitdiff
path: root/lib/action.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-09-15 17:17:36 -0400
committerCraig Andrews <candrews@integralblue.com>2009-09-15 17:17:36 -0400
commitd7e13e847dbce55ad8ed017f02e1ac8420881e4e (patch)
tree11a241bf2befb0866f7241419dd5edba1800aa71 /lib/action.php
parentc6675bbddf5a50bb7df803b7556ddbf62ae6a1d0 (diff)
304 responses should not have a Content-Length header.
Diffstat (limited to 'lib/action.php')
-rw-r--r--lib/action.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/action.php b/lib/action.php
index 06cdbdfe0..ebef4f9e4 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);
}