diff options
Diffstat (limited to 'themes/base/htdocs/luci-static')
-rw-r--r-- | themes/base/htdocs/luci-static/resources/xhr.js | 2 |
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 3a30e04686..a146fa8a18 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 ) |