Skip to content

Commit

Permalink
Fix wrong query string addition logic. Patch provided by Lukas Fryc
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarcand committed Mar 30, 2012
1 parent cfceb30 commit 439beed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/jquery/src/main/webapp/jquery/jquery.atmosphere.js
Expand Up @@ -560,7 +560,8 @@ jQuery.atmosphere = function() {
return url; return url;
} }


url += "?X-Atmosphere-tracking-id=" + _uuid; url += (url.indexOf('?') != -1) ? '&' : '?';
url += "X-Atmosphere-tracking-id=" + _uuid;
url += "&X-Atmosphere-Framework=" + jQuery.atmosphere.version; url += "&X-Atmosphere-Framework=" + jQuery.atmosphere.version;
url += "&X-Atmosphere-Transport=" + rq.transport; url += "&X-Atmosphere-Transport=" + rq.transport;


Expand Down Expand Up @@ -1483,6 +1484,7 @@ jQuery.atmosphere = function() {
} else if (jQuery.browser.opera) { } else if (jQuery.browser.opera) {
return true; return true;
} }

// Force Android to use CORS as some version like 2.2.3 fail otherwise // Force Android to use CORS as some version like 2.2.3 fail otherwise
var ua = navigator.userAgent.toLowerCase(); var ua = navigator.userAgent.toLowerCase();
var isAndroid = ua.indexOf("android") > -1; var isAndroid = ua.indexOf("android") > -1;
Expand Down

0 comments on commit 439beed

Please sign in to comment.