Skip to content

Commit

Permalink
refs #147
Browse files Browse the repository at this point in the history
  • Loading branch information
rafael-pestano committed Jan 10, 2019
1 parent daa262e commit 3f34cbf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ private String getRedirectPrefix(HttpServletRequest request) {
String uri = request.getRequestURI();
int offset = url.indexOf(uri);
redirectPrefix = url.substring(0, offset);
if(request.isSecure()) {
if(request.isSecure() || request.getServerPort() == 443) {
redirectPrefix = redirectPrefix.replace("http:","https:");
}
log.info("Configured redirect prefix: "+redirectPrefix);
Expand Down

0 comments on commit 3f34cbf

Please sign in to comment.