https://bz.apache.org/bugzilla/show_bug.cgi?id=60663
Bug ID: 60663
Summary: Sends "411 Content Length Required" reply to OPTIONS
request with empty body
Product: Apache httpd-2
Version: 2.4.25
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_http2
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
When the h2 module is enabled and a client contacts Apache using HTTP/2, the
server will send back a 411 error when the OPTIONS method is used without a
body and without a Content-Length specified.
This is not the case for HTTP/1.1, and accessing the same resource over
HTTP/1.1 works fine.
https://tools.ietf.org/html/rfc7230#section-3.3.2 specifies that:
A user agent SHOULD send a Content-Length in a request message when
no Transfer-Encoding is sent and the request method defines a meaning
for an enclosed payload body. For example, a Content-Length header
field is normally sent in a POST request even when the value is 0
(indicating an empty payload body). A user agent SHOULD NOT send a
Content-Length header field when the request message does not contain
a payload body and the method semantics do not anticipate such a
body.
(SHOULD, not MUST)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]