aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2012-08-23 21:30:45 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-08-23 21:33:29 -0400
commitc01e022f33575ed45fb8da65be756fc464d40a24 (patch)
tree6b269724eddced618aa759655cfed38281eb15dd /src/ajax.js
parenta9c2a9bf61af4c09e8f089b45e8986b9a5416d46 (diff)
downloadjquery-c01e022f33575ed45fb8da65be756fc464d40a24.tar.gz
jquery-c01e022f33575ed45fb8da65be756fc464d40a24.zip
Fix #11586. Ajax DELETE ain't got no body, so data goes to its URL.
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js
index cfbfcd527..04b8a2536 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -7,7 +7,7 @@ var // Document location
rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
// #7653, #8125, #8152: local protocol detection
rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
- rnoContent = /^(?:GET|HEAD)$/,
+ rnoContent = /^(?:GET|HEAD|DELETE)$/,
rprotocol = /^\/\//,
rquery = /\?/,
rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,