You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/02/29 11:43:28 UTC

[Bug 40953] Should not send any data in 304 reply from cgi

https://issues.apache.org/bugzilla/show_bug.cgi?id=40953


Edward Crichton <en...@comlab.ox.ac.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |enc@comlab.ox.ac.uk
           Severity|enhancement                 |minor




--- Comment #1 from Edward Crichton <en...@comlab.ox.ac.uk>  2008-02-29 02:43:27 ---
According to RFC 2616:
"All 1xx (informational), 204 (no content), and 304 (not modified) responses
   MUST NOT include a message-body. "

I have just found that Safari - including the latest version - freezes when it
gets content for these with other requests pending - i.e. it gets stuck.

Example response:

HTTP/1.1 204 No Content
Date: Fri, 29 Feb 2008 09:45:53 GMT
Server: Apache/2.2.4 (Ubuntu) mod_jk/1.2.23
Content-Length: 8
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html;charset=ISO-8859-1

(The 8 bytes is just whitespace from formatting in a jsp.)

The response is clearly incorrect.

The safest thing for Apache to do would be to set the content-length to 0 and
discard any contents up to the advertised content-length from the
cgi/php/servlet.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org