From 779375e84b55a6a543b1d6032f3bd4d313d84840 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 18 Nov 2010 10:23:23 +0000 Subject: themes/base: fix xhr.js for https:// access --- themes/base/htdocs/luci-static/resources/xhr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'themes/base/htdocs') 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 ) -- cgit v1.2.3