Ticket #116 (closed Enhancement: Out of scope)
Content-Type in response even if Content-Length=0 ?
| Reported by: | ibc | Owned by: | adigeo |
|---|---|---|---|
| Priority: | Minor | Milestone: | Nice to have |
| Component: | Interoperability | Version: | trunk |
| Severity: | Non-critical | Keywords: | |
| Cc: |
Description
After a succesful PUT action OpenXCAP replies:
HTTP/1.1 200 OK Date: Wed, 15 Jul 2009 16:54:29 GMT Content-Length: 0 ETag: "6bcf3690929ca4f24d697838e9af1242" Content-Type: application/auth-policy+xml Server: OpenXCAP/1.1.0 Connection: close
Since Content-Length is 0, does Content-Type header make sense?
Change History
comment:1 Changed 2 years ago by adigeo
- Owner changed from support@ag-projects.com to adigeo
- Status changed from new to accepted
comment:2 Changed 2 years ago by ibc
I've seen no problem with HTTP clients (I've tested no so many however) but IMHO a response to a PUT request shouldn't contain a Content-Type matching the PUT Content-type as it makes no sense.
Note: See
TracTickets for help on using
tickets.

Indeed this is not very elegant. But does it hurt a client, any experience related to this?