Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2398 from arian/fix-2316-request-delete-body

Fixes #2316 - A DELETE request will use a querystring instead of the request body
  • Loading branch information...
commit 34ecf753e9cf3e03b322ad6d6ad4191a88696b0c 2 parents aa91693 + 6cad211
@arian arian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Source/Request/Request.js
View
2  Source/Request/Request.js
@@ -185,7 +185,7 @@ var Request = this.Request = new Class({
if (this.options.noCache)
url += (url.contains('?') ? '&' : '?') + String.uniqueID();
- if (data && method == 'get'){
+ if (data && (method == 'get' || method == 'delete')){
url += (url.contains('?') ? '&' : '?') + data;
data = null;
}
Please sign in to comment.
Something went wrong with that request. Please try again.