Ticket #104 (accepted Enhancement)
Add "Content-Lenght: 0" to 304 responses
| Reported by: | ibc | Owned by: | saul |
|---|---|---|---|
| Priority: | Minor | Milestone: | Next Release |
| Component: | Interoperability | Version: | trunk |
| Severity: | Non-critical | Keywords: | |
| Cc: |
Description
I've realized that OpenXCAP doesn't add "Content-Length: 0" when replies 304 (with no body). Sincerelly I'm not sure if Content-Length is required in HTTP even if content size is 0.
However I've detected some HTTP clients getting blocked for some seconds when receving such response, waiting for the body.
Most probably, this is a bug in the client but I suggest OpenXCAP to add "Content-Length: 0" even if body is empty.
Change History
comment:2 Changed 3 years ago by adigeo
- Owner changed from support@ag-projects.com to adigeo
- Status changed from new to accepted
- Milestone changed from OpenXCAP 1.2.0 to Nice to have
Note: See
TracTickets for help on using
tickets.

For sure this is a bug in Ruby httpclient:
RFC 2616:
Anyhow, it would be nice if OpenXCAP adds "Content-Length: 0".