on master help sign in
Indicate isSecure should not be used #159
commit6ec8e637dbbf4b19d84d833fcf4e654a1e564e23 authorMichael Snoyman <michael@snoyman.com> dateWed 22 May 2013, 12:03 (13 years ago) parenta0f1f50
1 file changed+5
wai/Network/Wai.hs+5
wai/Network/Wai.hs+5
@@ -90,6 +90,11 @@ data Request = Request
9090 , serverPort :: Int
9191 , requestHeaders :: H.RequestHeaders
9292 -- | Was this request made over an SSL connection?
93+ --
94+ -- This value should /not/ be used, and will be removed in future revisions
95+ -- of WAI. There is no meaningful way that a backend can indicate whether the
96+ -- request is actually over a secure channel, due to issues of reverse
97+ -- proxying.
9398 , isSecure :: Bool
9499 -- | The client\'s host information.
95100 , remoteHost :: SockAddr