From fc1ca16f460557ae37638c535465e64cb2f45964 Mon Sep 17 00:00:00 2001 From: Brian Pfretzschner Date: Fri, 14 Nov 2014 13:38:35 +0100 Subject: [PATCH] Allow params with any HTTP request method The given params should be used with any request method. --- core-xhr.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-xhr.html b/core-xhr.html index dbc531b..200ffde 100644 --- a/core-xhr.html +++ b/core-xhr.html @@ -51,7 +51,7 @@ var async = !options.sync; // var params = this.toQueryString(options.params); - if (params && method == 'GET') { + if (params) { url += (url.indexOf('?') > 0 ? '&' : '?') + params; } var xhrParams = this.isBodyMethod(method) ? (options.body || params) : null;