diff options
| author | Greg Ames <gregames@apache.org> | 2005-04-08 18:07:33 +0000 |
|---|---|---|
| committer | Greg Ames <gregames@apache.org> | 2005-04-08 18:07:33 +0000 |
| commit | 6eabfd6c6a6da8301e69ddddba8e4874c22cf136 (patch) | |
| tree | a39bfe7b6c927317a15f69268166fec73c3f2bae /server | |
| parent | caaf2823a3a037ec39d5ecb84c8ced3f11d83a2e (diff) | |
| download | httpd-6eabfd6c6a6da8301e69ddddba8e4874c22cf136.tar.gz | |
use a more general but slightly slower test for a body.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@160573 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
| -rw-r--r-- | server/protocol.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/protocol.c b/server/protocol.c index 546df2f7f2..2ef8438003 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -1032,7 +1032,8 @@ AP_DECLARE(void) ap_set_sub_req_protocol(request_rec *rnew, /* did the original request have a body? (e.g. POST w/SSI tags) * if so, make sure the subrequest doesn't inherit body headers */ - if (r->read_length) { + if (apr_table_get(r->headers_in, "Content-Length") + || apr_table_get(r->headers_in, "Transfer-Encoding")) { clone_headers_no_body(rnew, r); } else { /* no body (common case). clone headers the cheap way */ |
