]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
APACHE_XLATE, when doing translation that isn't single-byte-only
authorJeff Trawick <trawick@apache.org>
Fri, 2 Jun 2000 15:55:20 +0000 (15:55 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 2 Jun 2000 15:55:20 +0000 (15:55 +0000)
commit730cec6b01c2df70199b78509f864554fb15c385
tree251edc088ff4f76e167cbd3cf06eadd651be5e45
parent0cc2db99876bb9d98f92b0912f8e0f6e9c68d2d0
APACHE_XLATE, when doing translation that isn't single-byte-only

We must zap the Content-length header (if any).  Otherwise, the
browser will be seriously confused :)  The header is zapped in
ap_set_keepalive() right before we look for Content-length, transfer
encoding, HTTP level, etc. to decide, among other issues, whether or
not to turn on chunked encoding.  For HTTP 1.1, if we don't send
Content-length, we need to use chunked encoding, so we have to zap
the header before that decision.

Interestingly, in Russian Apache the Content-length header is
zapped after ap_set_keepalive() is called, so with HTTP 1.1 they
break the content-length-or-chunked rule.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85379 13f79535-47bb-0310-9956-ffa450edef68
include/httpd.h
modules/http/http_protocol.c
server/util_charset.c