Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit b960913

Browse files
committed
Merge pull request #16 from rnicholus/patch-1
GET params not added to query string if method is "get"
2 parents f69f7cb + 132c4b3 commit b960913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core-xhr.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
var async = !options.sync;
5252
//
5353
var params = this.toQueryString(options.params);
54-
if (params && method == 'GET') {
54+
if (params && method.toUpperCase() == 'GET') {
5555
url += (url.indexOf('?') > 0 ? '&' : '?') + params;
5656
}
5757
var xhrParams = this.isBodyMethod(method) ? (options.body || params) : null;

0 commit comments

Comments
 (0)