Skip to main content

Bug Tracker

Side navigation

#7268 closed bug ()

Opened October 21, 2010 02:59PM UTC

Closed November 11, 2010 11:09PM UTC

Data argument no longer works with DELETE requests

Reported by: anonymous Owned by: anonymous
Priority: low Milestone: 1.5
Component: unfiled Version: 1.4.3
Keywords: data argument delete Cc:
Blocked by: Blocking:
Description

Introduced here:

http://github.com/jquery/jquery/commit/c4e653237f258ce618ad5a9ec677917166fbed16

Code presupposes that data will never be sent with GET, HEAD or DELETE requests, previous versions only assumed this to be the case with GET.

Attachments (0)
Change History (5)

Changed October 21, 2010 03:03PM UTC by addyosmani comment:1

keywords: → data argument delete
owner: → anonymous
priority: undecidedlow
status: newpending

Please provide us with a test case that reproduces this issue so that we can verify the effects its having.

Changed October 21, 2010 03:44PM UTC by Mal comment:2

I did try to, however jsfiddle does not support ajax testing with anything but POST requests. I have posted a test case on jsFiddle, but it must be executed elsewhere in a PHP environment, sorry I couldn't be of more help.

Hope this is what you were looking for.

http://jsfiddle.net/malibu/MCzkL/

Changed October 22, 2010 10:28AM UTC by Mal comment:3

Managed to get the test case up on a server:

http://www.locatetv.com/blog/test/test.php

As you can see while the PUT request echos back correctly, the DELETE data is never sent and the corresponding echo is blank.

Changed October 25, 2010 10:31PM UTC by andrew@hijacked.us comment:4

I can confirm this regression. The fix is simply to remove DELETE from the rnoContent regexp, since there's no reason that delete requests cannot have parameters.

Changed November 11, 2010 11:09PM UTC by trac-o-bot comment:5

status: pendingclosed

Automatically closed due to 14 days of inactivity.