Force SSL after metrics middleware (not before)

This commit is contained in:
Tim Dysinger 2016-06-16 16:12:53 -07:00
parent b945ad449c
commit d282ade792
No known key found for this signature in database
GPG Key ID: 155E7413C156F68B

View File

@ -75,8 +75,8 @@ makeApplication foundation = do
-- Create the WAI application and apply middlewares
appPlain <- toWaiAppPlain foundation
let middleware = forceSSL' (appSettings foundation)
. prometheus def
let middleware = prometheus def
. forceSSL' (appSettings foundation)
. logWare
. defaultMiddlewaresNoLogging