diff options
Diffstat (limited to 'itjs')
-rwxr-xr-x | itjs/http.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs/http.js b/itjs/http.js index 5773cda..9f1bd4b 100755 --- a/itjs/http.js +++ b/itjs/http.js @@ -52,7 +52,7 @@ send: function(url, method, postdata) this.busy = true; this.req = null; - var samehost = (url.indexOf('http://') < 0 || url.indexOf(window.location.hostname) > 0); + var samehost = (!url.match(/^(\w+:)?\/\//) || url.indexOf(window.location.hostname) > 0); if (samehost) // use XMLHTTP request only if on same host { |