Skip to main content

Bug Tracker

Side navigation

#13261 closed bug (fixed)

Opened January 18, 2013 11:28AM UTC

Closed January 24, 2013 01:37AM UTC

Last modified March 23, 2013 08:44PM UTC

Ajax response with status code 204 must not be parsed

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.0
Keywords: Cc:
Blocked by: Blocking:
Description

In case the response to an ajax call returns with an HTTP status 204/No Content, jQuery must not try to apply any converters on the response but simply pass it on.

See this example: http://jsfiddle.net/mbhp2/

Attachments (0)
Change History (5)

Changed January 22, 2013 09:53PM UTC by anonymous comment:1

Changed January 24, 2013 01:37AM UTC by byroot comment:2

resolution: → fixed
status: newclosed

Don't try and convert data for 204 No Content responses. Fixes #13292. Fixes #13261.

Changeset: bfc61b879e9e94ef7c6b31919b7f287ffdf180a8

Changed January 24, 2013 01:37AM UTC by byroot comment:3

resolution: → fixed
status: newclosed

Don't try and convert data for 204 No Content responses. Fixes #13292. Fixes #13261.

Changeset: eb47553eeac58861bcefac063c0e03e161b4d52c

Changed January 26, 2013 02:52PM UTC by dmethvin comment:4

#13319 is a duplicate of this ticket.

Changed March 23, 2013 08:44PM UTC by ojak comment:5

_comment0: As of 1.9.1, Response 204 triggers the fail() block. This ticket should be reopened.1364071777751467

As of 1.9.1, even though response 204 triggers success, it still triggers the fail() block on cross domain requests. This ticket should be reopened.