Skip to content

Commit bc4eb72

Browse files
committed
fixed http redirect
1 parent 6059d9f commit bc4eb72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coder-base/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ params.extend( redirectapp );
263263
redirectapp.engine( 'html', cons.mustache );
264264
redirectapp.all( /.*/, function( req, res ) {
265265
util.log( 'redirect: ' + getHost(req) + " " + config.httpsVisiblePort + " " + req.url );
266-
res.redirect("https://" + getHost(req) + ":" + config.httpsVisiblePort + req.url);
266+
res.redirect("https://" + req.host + ":" + config.httpsVisiblePort + req.url);
267267
});
268268

269269
startSSL();

0 commit comments

Comments
 (0)