From: Jo-Philipp Wich Date: Thu, 18 Nov 2010 10:23:23 +0000 (+0000) Subject: themes/base: fix xhr.js for https:// access X-Git-Tag: 0.10.0~416 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=779375e84b55a6a543b1d6032f3bd4d313d84840 themes/base: fix xhr.js for https:// access --- diff --git a/themes/base/htdocs/luci-static/resources/xhr.js b/themes/base/htdocs/luci-static/resources/xhr.js index 3a30e0468..a146fa8a1 100644 --- a/themes/base/htdocs/luci-static/resources/xhr.js +++ b/themes/base/htdocs/luci-static/resources/xhr.js @@ -43,7 +43,7 @@ XHR = function() var xhr = this._xmlHttp; var code = this._encode( data ); - url = 'http://' + location.hostname + + url = location.protocol + '//' + location.hostname + ( location.port ? ':' + location.port : '' ) + url; if( code )