Permalink
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...
2 parents aa91693 + 6cad211 commit 34ecf753e9cf3e03b322ad6d6ad4191a88696b0c @arian arian committed Aug 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 34ecf75

Please sign in to comment.