summaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-11-18 10:23:23 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-11-18 10:23:23 +0000
commit779375e84b55a6a543b1d6032f3bd4d313d84840 (patch)
tree61f64fd11c26f99f84706f34f57f81f87dee62b3 /themes
parente9174fbba153ae7ba53f81ef15f1ed95e655c702 (diff)
themes/base: fix xhr.js for https:// access
Diffstat (limited to 'themes')
-rw-r--r--themes/base/htdocs/luci-static/resources/xhr.js2
1 files changed, 1 insertions, 1 deletions
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 )