Modify ↓
Ticket #11446 (closed bug: invalid)
$.ajax DELETE does not append query string params
| Reported by: | alexandre.conrad@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | ajax | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
jsfiddle: http://jsfiddle.net/f8ndA/
I noticed that calling .ajax() as type DELETE request doesn't append the query string parameters to the URL:
$.ajax({type: "DELETE", data: {foo: "bar"}}); http://.../
... whereas GET works just fine (so does HEAD):
$.ajax({type: "GET", data: {foo: "bar"}}); http://.../?foo=bar
Change History
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.

DELETE requests should not attach data to the query string.