on master help sign in
Version bump
commitf139be72f19a1c3f775f0fc906261e833828b7d0 authorpatrick brisbin <pbrisbin@gmail.com> dateWed 8 Apr 2015, 11:15 (12 years ago) parenteabe0fd
3 files changed+8−1
wai-extra/ChangeLog.md+5 wai-extra/Network/Wai/Request.hs+2 wai-extra/wai-extra.cabal+1−1
wai-extra/ChangeLog.md+5
@@ -1,3 +1,8 @@
1+## 3.0.7
2+
3+* Add appearsSecure: check if a request appears to be using SSL even in the
4+ presence of reverse proxies [#362](https://github.com/yesodweb/wai/pull/362)
5+
16## 3.0.6.1
27
38* Test code: only include a Cookie header if there are cookies. Without this
wai-extra/Network/Wai/Request.hs+2
@@ -21,6 +21,8 @@ import qualified Data.ByteString.Char8 as C
2121-- @'isSecure'@. This is not always the case though: for example, deciding to
2222-- force a non-SSL request to SSL by redirect. One can safely choose not to
2323-- redirect when the request /appears/ secure, even if it's actually not.
24+--
25+-- Since 3.0.7
2426appearsSecure :: Request -> Bool
2527appearsSecure request = isSecure request || any (uncurry matchHeader)
2628 [ ("HTTPS" , (== "on"))
wai-extra/wai-extra.cabal+1−1
@@ -1,5 +1,5 @@
11Name: wai-extra
2−Version: 3.0.6.1
2+Version: 3.0.7
33Synopsis: Provides some basic WAI handlers and middleware.
44description:
55 Provides basic WAI handler and middleware functionality: