From 4e89816eaa7099af414b78b91aa86ac599e18adc Mon Sep 17 00:00:00 2001 From: "Leon.moon" Date: Fri, 10 Jul 2015 18:44:10 +0900 Subject: [PATCH] When 'DELETE' method is used convert data to query string path --- src/reqwest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reqwest.js b/src/reqwest.js index a20c9d4..da9f09f 100644 --- a/src/reqwest.js +++ b/src/reqwest.js @@ -187,7 +187,7 @@ // if we're working on a GET request and we have data then we should append // query string to end of URL and not post data - if ((o['type'] == 'jsonp' || method == 'GET') && data) { + if ((o['type'] == 'jsonp' || method == 'GET' || method == 'DELETE') && data) { url = urlappend(url, data) data = null } @@ -341,7 +341,7 @@ function timedOut() { self._timedOut = true - self.request.abort() + self.request.abort() } function error(resp, msg, t) {