]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_proxy_http: follow up to r1836588/r1836648: handle unread 100-continue.
authorYann Ylavic <ylavic@apache.org>
Thu, 26 Jul 2018 11:29:51 +0000 (11:29 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 26 Jul 2018 11:29:51 +0000 (11:29 +0000)
commit12c264bec0159413b2a806931445438f541cebc6
treeb52569875206a490db27b782c783189bc045c3d6
parente9ba7c1cf360e70bde118c7daf7b9233ee03c09f
mod_proxy_http: follow up to r1836588/r1836648: handle unread 100-continue.

When the backend responds with a non-interim response to a 100-continue,
mod_proxy_http won't read the client's body, so make sure "Connection: close"
ends up being added to the response if nobody reads that body later.

The right thing to do at mod_proxy level, rather then forcing AP_CONN_CLOSE,
is to restore r->expecting_100 so that further processing (like error_override
or trying on the next balancer member) can still work.

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