diff --git a/src/net/net_http.js b/src/net/net_http.js index e992537ed2b..d8a0cd75a08 100644 --- a/src/net/net_http.js +++ b/src/net/net_http.js @@ -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)) {