forked from GNUsocial/gnu-social
304 responses should not have a Content-Length header.
This commit is contained in:
parent
c6675bbddf
commit
d7e13e847d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user