Skip to content

Commit

Permalink
fix compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinPihony committed Nov 10, 2023
1 parent cbdb6eb commit 2b21a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/ReactiveManifestoFilter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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}"))
Expand Down

0 comments on commit 2b21a01

Please sign in to comment.