Merge pull request #264 from bati11/257-https-reverse-proxy

Fix #257, "org.scalatra.ForceHttps" set to true, if --https=true
This commit is contained in:
Naoki Takezoe
2014-02-01 21:39:01 -08:00

View File

@@ -53,6 +53,9 @@ public class JettyLauncher {
context.setDescriptor(location.toExternalForm() + "/WEB-INF/web.xml");
context.setServer(server);
context.setWar(location.toExternalForm());
if (forceHttps) {
context.setInitParameter("org.scalatra.ForceHttps", "true");
}
server.setHandler(context);
server.start();