fix(server) add redirection port

This commit is contained in:
coderaiser 2013-11-22 09:35:15 +00:00
parent ea7445cea0
commit 12073ee5eb

View file

@ -101,11 +101,12 @@
Util.log('* Redirection http -> https is setted up');
lServerLog(lHTTP, lPort);
var lRedirectServer = http.createServer( function(pReq, pRes) {
var lHost = pReq.headers.host;
var lHost = pReq.headers.host,
lURL = lHTTPS + lHost + pReq.url + ':' + lSSLPort;
main.redirect({
response: pRes,
url: lHTTPS + lHost + pReq.url
url: lURL
});
});