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 2003/03/04 06:54:00 UTC
DO NOT REPLY [Bug 17629] New: -
mod_deflate mixes compressed and uncompressed data when SSI issues a redirect
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17629>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17629
mod_deflate mixes compressed and uncompressed data when SSI issues a redirect
Summary: mod_deflate mixes compressed and uncompressed data when
SSI issues a redirect
Product: Apache httpd-2.0
Version: 2.0.44
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: Normal
Priority: Other
Component: mod_deflate
AssignedTo: bugs@httpd.apache.org
ReportedBy: koreth-apache@midwinter.com
This is almost certainly a variant of bug 15423, but that bug is fixed and this
problem still exists. I'm not sure whether it's really a mod_deflate bug or a
mod_include bug. If I have a server-parsed HTML file on an Apache 2 server that
has mod_deflate enabled for HTML content, and it includes a CGI that issues a
redirect to another HTML file, the redirected content isn't compressed, even
though the server issues a "Content-Encoding: gzip" header line. My test case:
dozer% cat test-apache2-redir.shtml
<!--#include virtual="/cgi-bin/redirtest" --> Got to end!
dozer% cat foo.html
hiya
dozer% cat ~/apache/cgi-bin/redirtest
#!/bin/sh
echo Location: /foo.html
echo ''
dozer% ( echo 'GET /test-apache2-redir.shtml HTTP/1.1' ; \
echo 'Accept-Encoding: gzip' ; \
echo 'Host: dozer' ; \
echo '' ) | nc dozer 8763 | less
HTTP/1.1 200 OK
Date: Tue, 04 Mar 2003 05:47:21 GMT
Server: Apache/2.0.44 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0210222112
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Encoding: gzip
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=ISO-8859-1
5
hiya
21
^_<8B^@^@^@^@^@^@^CSp<CF>/Q(<C9>WH<CD>KQ<E4>^B^@<EB><D7>y<BD>^M^@^@^@
0
The output (with the patch for bug 15423 applied) is correct if I don't accept
gzip encoding:
dozer% ( echo 'GET /test-apache2-redir.shtml HTTP/1.1' ; \
echo 'Host: dozer' ; \
echo '' ) | nc dozer 8763
HTTP/1.1 200 OK
Date: Tue, 04 Mar 2003 05:49:36 GMT
Server: Apache/2.0.44 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0210222112
Accept-Ranges: bytes
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=ISO-8859-1
5
hiya
d
Got to end!
0
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org