Bug Tracker

Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#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:
Blocked by: Blocking:

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 (3)

comment:1 Changed 8 years ago by timmywil

Component: unfiledajax
Priority: undecidedlow
Resolution: invalid
Status: newclosed

DELETE requests should not attach data to the query string.

comment:2 in reply to:  1 Changed 6 years ago by anonymous

Replying to timmywil:

DELETE requests should not attach data to the query string.

Why? They shouldn't attach body queries.

comment:3 Changed 6 years ago by dmethvin

See #11586

Note: See TracTickets for help on using tickets.