https://bz.apache.org/bugzilla/show_bug.cgi?id=66597

            Bug ID: 66597
           Summary: HTTP/2 chunk requests conflict with proxy-sendcl
                    option in mod_proxy_fcgi
           Product: Apache httpd-2
           Version: 2.4.57
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy_fcgi
          Assignee: bugs@httpd.apache.org
          Reporter: dreamt_catsup...@simplelogin.com
  Target Milestone: ---

In cases where an HTTP/2 request is chunked (sent without a CONTENT_LENGTH
header but with the END_STREAM flag (RFC 7540)).

In cases where the proxy-sendcl env variable is set: 
"HTTP/1.0 required all HTTP requests that include a body (e.g. POST requests)
to include a Content-Length header. This environment variable forces the Apache
proxy to send this header to the backend server, regardless of what the Client
sent to the proxy..."

mod_proxy_fcgi also chunks the body. This can cause problems for the PHP-FPM
back-end, which is not expecting chunk fields since the content length is
specified.

It looks a side effect of https://bz.apache.org/bugzilla/show_bug.cgi?id=57087

It can easily be reproduce:
curl -v -k -H 'Content-Length:' --http2 -X POST https://127.0.0.1/ -d
'{"thisis":"atest"}'

The FCGI_STDIN will look:
12
{"thisis":"atest"}
0

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to