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

Commit

Permalink
Merge pull request #16 from rnicholus/patch-1
Browse files Browse the repository at this point in the history
GET params not added to query string if method is "get"
  • Loading branch information
garlicnation committed Jan 7, 2015
2 parents f69f7cb + 132c4b3 commit b960913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core-xhr.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
var async = !options.sync;
//
var params = this.toQueryString(options.params);
if (params && method == 'GET') {
if (params && method.toUpperCase() == 'GET') {
url += (url.indexOf('?') > 0 ? '&' : '?') + params;
}
var xhrParams = this.isBodyMethod(method) ? (options.body || params) : null;
Expand Down

0 comments on commit b960913

Please sign in to comment.