Ticket #7099 (closed bug: worksforme)
AJAX does not correctly handle HTTP Responses that include content-type but do not have a message-body
|Reported by:||msutton||Owned by:|
|Keywords:||ajax http status 204||Cc:|
An example of this is the 204 No Content status. The HTTP specification is unclear as to the inclusion of content-type. It does not forbid including it at any rate. But it does forbid the inclusion of a message-body. If the content-type is something other than text/plain or not included, jQuery will attempt to parse the non-existent message-body and fail.
The behavior should be to disregard processing the message-body entirely for a response with status 204 an other status that don't have a message-body.