204 No Content responses have Content-Length specified
Bug #1537811 reported by
Radoslaw Zarzynski
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
In Progress
|
Low
|
Unassigned |
Bug Description
Swift appends Content-Length HTTP header with 0 value even in
a 204 No Content response. However, RFC 7230 clearly states [1]:
"A server MUST NOT send a Content-Length header field in any
response with a status code of 1xx (Informational) or 204 (No
Content)."
[1] Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and
Routing, section 3.2.2., page 30.
https:/
Changed in swift: | |
assignee: | nobody → Trevor McCasland (twm2016) |
Changed in swift: | |
assignee: | Trevor McCasland (twm2016) → nobody |
To post a comment you must log in.
Also some proxy (like Apache mod_proxy) strips content-length when it sees a 204 response, so tempest tests fail with this kind of proxy.