480162 - Continuations behavior differences due to HttpURI behavior
Only set scheme in SecureRequestCustomizer if not already set
This commit is contained in:
parent
8b27484ea2
commit
4ffe0d375e
|
@ -68,11 +68,6 @@ public class SecureRequestCustomizer implements HttpConfiguration.Customizer
|
|||
{
|
||||
if (request.getHttpChannel().getEndPoint() instanceof DecryptedEndPoint)
|
||||
{
|
||||
request.setSecure(true);
|
||||
|
||||
if (request.getHttpURI().getScheme()==null)
|
||||
request.setScheme(HttpScheme.HTTPS.asString());
|
||||
|
||||
SslConnection.DecryptedEndPoint ssl_endp = (DecryptedEndPoint)request.getHttpChannel().getEndPoint();
|
||||
SslConnection sslConnection = ssl_endp.getSslConnection();
|
||||
SSLEngine sslEngine=sslConnection.getSSLEngine();
|
||||
|
@ -104,7 +99,10 @@ public class SecureRequestCustomizer implements HttpConfiguration.Customizer
|
|||
*/
|
||||
public void customize(SSLEngine sslEngine, Request request)
|
||||
{
|
||||
request.setScheme(HttpScheme.HTTPS.asString());
|
||||
request.setSecure(true);
|
||||
if (request.getHttpURI().getScheme()==null)
|
||||
request.getHttpURI().setScheme(HttpScheme.HTTPS.asString());
|
||||
|
||||
SSLSession sslSession = sslEngine.getSession();
|
||||
|
||||
if (_sniHostCheck)
|
||||
|
|
Loading…
Reference in New Issue