diff --git a/app/services/ReactiveManifestoFilter.scala b/app/services/ReactiveManifestoFilter.scala index 79a1f1a..57e4abf 100644 --- a/app/services/ReactiveManifestoFilter.scala +++ b/app/services/ReactiveManifestoFilter.scala @@ -7,7 +7,7 @@ class ReactiveManifestoFilter extends EssentialFilter { override def apply(next: EssentialAction): EssentialAction = EssentialAction { rh => val isHealthCheck = rh.path == "/health" val requestHttps: Boolean = rh.headers.get("X-Forwarded-Proto").exists(_.equalsIgnoreCase("https")) - if (isHealthCheck || requestHttps || rh.secure || config.getOptional[Boolean]("session.secure").filter(identity).isEmpty) { + if (isHealthCheck || requestHttps || rh.secure) { next(rh) } else if (rh.host == "reactivemanifesto.org") { Accumulator.done(Results.MovedPermanently(s"https://www.reactivemanifesto.org${rh.uri}"))