Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Erdfelt2015-10-23 18:30:19 -0400
committerJoakim Erdfelt2015-11-02 15:28:45 -0500
commit30888e134b70058c75bd5aa7291a6b5ab2e06b11 (patch)
treeb57d32f508f7a4ef4864ba47256c9e59c212cdb9
parent36fdf9b788f6f24a273fe8c2df58708103b20233 (diff)
downloadorg.eclipse.jetty.project-30888e134b70058c75bd5aa7291a6b5ab2e06b11.tar.gz
org.eclipse.jetty.project-30888e134b70058c75bd5aa7291a6b5ab2e06b11.tar.xz
org.eclipse.jetty.project-30888e134b70058c75bd5aa7291a6b5ab2e06b11.zip
Set what you test
-rw-r--r--jetty-server/src/main/java/org/eclipse/jetty/server/SecureRequestCustomizer.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/SecureRequestCustomizer.java b/jetty-server/src/main/java/org/eclipse/jetty/server/SecureRequestCustomizer.java
index 27f9c0c936..1ede4423c6 100644
--- a/jetty-server/src/main/java/org/eclipse/jetty/server/SecureRequestCustomizer.java
+++ b/jetty-server/src/main/java/org/eclipse/jetty/server/SecureRequestCustomizer.java
@@ -68,6 +68,11 @@ public class SecureRequestCustomizer implements HttpConfiguration.Customizer
{
if (request.getHttpChannel().getEndPoint() instanceof DecryptedEndPoint)
{
+ request.setSecure(true);
+
+ if (request.getHttpURI().getScheme()==null)
+ request.getHttpURI().setScheme(HttpScheme.HTTPS.asString());
+
SslConnection.DecryptedEndPoint ssl_endp = (DecryptedEndPoint)request.getHttpChannel().getEndPoint();
SslConnection sslConnection = ssl_endp.getSslConnection();
SSLEngine sslEngine=sslConnection.getSSLEngine();

Back to the top