X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=themes%2Fbase%2Fhtdocs%2Fluci-static%2Fresources%2Fxhr.js;h=23bf96e0210d5f6f5d02c0cc902236270deb1c17;hp=3a30e04686490bda56314b97f07881f5779f486b;hb=d4053ad4925dbd932a584b34665a1c5bc7ab6ce1;hpb=f3218c456a853e8ec53715525ee97a279083493b diff --git a/themes/base/htdocs/luci-static/resources/xhr.js b/themes/base/htdocs/luci-static/resources/xhr.js index 3a30e0468..23bf96e02 100644 --- a/themes/base/htdocs/luci-static/resources/xhr.js +++ b/themes/base/htdocs/luci-static/resources/xhr.js @@ -43,8 +43,7 @@ XHR = function() var xhr = this._xmlHttp; var code = this._encode( data ); - url = 'http://' + location.hostname + - ( location.port ? ':' + location.port : '' ) + url; + url = location.protocol + '//' + location.host + url; if( code ) if( url.substr(url.length-1,1) == '&' )