Simplified check for ssl, since x-forward is sorted by Undertow

This commit is contained in:
Stian Thorgersen 2014-01-20 19:31:02 +00:00
parent 851401c40a
commit e92980b776

View file

@ -637,15 +637,7 @@ public class TokenService {
return true;
}
if (uriInfo.getBaseUri().getScheme().equals("https")) {
return true;
}
if ("https".equals(headers.getHeaderString("X-Forwarded-Proto"))) {
return true;
}
return false;
return uriInfo.getBaseUri().getScheme().equals("https");
}
}