Modify ↓
Ticket #9682 (closed bug: fixed)
Ajax retry fetches the wrong URL
| Reported by: | niyazpk | Owned by: | jaubourg |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | ajax | Version: | 1.6.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
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
comment:1 Changed 23 months ago by addyosmani
- Priority changed from undecided to low
- Status changed from new to open
- Component changed from unfiled to ajax
comment:2 Changed 23 months ago by jaubourg
- Owner set to jaubourg
- Status changed from open to assigned
comment:3 Changed 23 months ago by jaubourg
- Status changed from assigned to closed
- Resolution set to fixed
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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