on master help sign in
Indicate isSecure should not be used #159
6ec8e63Michael Snoyman
wai/Network/Wai.hs+5
@@ -90,6 +90,11 @@ data Request = Request
90 , serverPort :: Int
90 , serverPort :: Int
91 , requestHeaders :: H.RequestHeaders
91 , requestHeaders :: H.RequestHeaders
92 -- | Was this request made over an SSL connection?
92 -- | 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.
93 , isSecure :: Bool
98 , isSecure :: Bool
94 -- | The client\'s host information.
99 -- | The client\'s host information.
95 , remoteHost :: SockAddr
100 , remoteHost :: SockAddr