Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#9682 closed bug (fixed)

Ajax retry fetches the wrong URL

Reported by: Niyaz Owned by: jaubourg
Priority: low Milestone: 1.next
Component: ajax Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:


When I do a retry of an ajax request using $.ajax(this) the new URL includes the items in the data parameter and so the URL is different for the retry.

Test case printing the URLs in each retry: http://jsfiddle.net/niyazpk/Fqahn/5/

Change History (4)

comment:1 Changed 12 years ago by addyosmani

Component: unfiledajax
Priority: undecidedlow
Status: newopen

Reproduced with jQuery Git: http://jsfiddle.net/Fqahn/6/

comment:2 Changed 12 years ago by jaubourg

Owner: set to jaubourg
Status: openassigned

comment:3 Changed 12 years ago by jaubourg

Resolution: fixed
Status: assignedclosed

Fixes #9682. Removes data from the options for request with no content so that it is not used again in case of a retry. Unit test added.

Changeset: e83fcdcb02d676d91d764a58f7e8d2eb1c95de69

comment:4 Changed 12 years ago by Niyaz

Stupid question: Won't this fix break this.data calls in the retry flow?

Note: See TracTickets for help on using tickets.