Skip to content

Commit

Permalink
ignore query arguments when checking URL for .json match
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksims Mihejevs committed Aug 27, 2015
1 parent e1620e4 commit 20dfcd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/net_http.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ pc.extend(pc.net, function () {
}
}
// Check the content type to see if we want to parse it
if (contentType === this.ContentType.JSON || url.endsWith(".json")) {
if (contentType === this.ContentType.JSON || url.split('?')[0].endsWith(".json")) {
// It's a JSON response
response = JSON.parse(xhr.responseText);
} else if (this.isBinaryContentType(contentType)) {
Expand Down

0 comments on commit 20dfcd0

Please sign in to comment.