]> granicus.if.org Git - apache/commit
mod_proxy: Fix a request corruption problem and a buffering problem
authorJeff Trawick <trawick@apache.org>
Thu, 30 Dec 2004 16:31:13 +0000 (16:31 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 30 Dec 2004 16:31:13 +0000 (16:31 +0000)
commitd2c60589c6bdd69a138a07497f94c4942218ba1e
tree0d8ce562eeb095ecebbea8a5a3315ef869943010
parent677b22e97ddfb16f4b3f8c208fc9b63e7bf4d3eb
mod_proxy: Fix a request corruption problem and a buffering problem
which sometimes prevented proxy-sendchunks from working.

strlen() couldn't be used since no space had been allocated
for trailing NUL, so occasionally the T-E header field contained
garbage and a 400 error would be returned by the origin server.

The lack of a flush bucket after the final "0\r\n\r\n" was a
showstopper for my simple tests (reverse proxy to Apache 1.3 +
custom module which read the body).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@123727 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/proxy/proxy_http.c