Navigation Menu

Skip to content

Commit

Permalink
Suuport happstack-server 6.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
aslatter committed Feb 17, 2012
1 parent 9523b44 commit 500a7ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion happstack-wai.cabal
Expand Up @@ -25,7 +25,7 @@ library
case-insensitive == 0.4.*,
conduit == 0.2.*,
containers == 0.4.*,
happstack-server == 6.5.* || == 6.6.*,
happstack-server >= 6.4 && < 6.7,
http-types == 0.6.*,
old-locale == 1.0.*,
text == 0.11.*,
Expand Down
2 changes: 2 additions & 0 deletions src/Happstack/Server/Wai.hs
Expand Up @@ -59,7 +59,9 @@ convertRequest wReq = do

return $
H.Request
#if MIN_VERSION_happstack_server(6,5,0)
(W.isSecure wReq)
#endif
(convertMethod $ W.requestMethod wReq)
(convertPath $ W.pathInfo wReq)
rawPath -- includes leading slash, does not include query
Expand Down

0 comments on commit 500a7ef

Please sign in to comment.