@@ -64,7 +64,7 @@ import Network.Socket
64
64
(SockAddr )
65
65
import Network.Wai
66
66
(Application , Request , httpVersion , isSecure , lazyRequestBody ,
67
- rawQueryString , remoteHost , requestBody , requestHeaders ,
67
+ queryString , remoteHost , requestBody , requestHeaders ,
68
68
requestMethod , responseLBS , responseStream , vault )
69
69
import Prelude ()
70
70
import Prelude.Compat
@@ -452,7 +452,7 @@ instance
452
452
hoistServerWithContext _ pc nt s = hoistServerWithContext (Proxy :: Proxy api ) pc nt . s
453
453
454
454
route Proxy context subserver =
455
- let querytext req = parseQueryText $ rawQueryString req
455
+ let querytext = queryToQueryText . queryString
456
456
paramname = cs $ symbolVal (Proxy :: Proxy sym )
457
457
458
458
parseParam :: Request -> DelayedIO (RequestArgument mods a )
@@ -519,8 +519,8 @@ instance (KnownSymbol sym, FromHttpApiData a, HasServer api context)
519
519
params :: [T. Text ]
520
520
params = mapMaybe snd
521
521
. filter (looksLikeParam . fst )
522
- . parseQueryText
523
- . rawQueryString
522
+ . queryToQueryText
523
+ . queryString
524
524
$ req
525
525
526
526
looksLikeParam name = name == paramname || name == (paramname <> " []" )
@@ -546,7 +546,7 @@ instance (KnownSymbol sym, HasServer api context)
546
546
hoistServerWithContext _ pc nt s = hoistServerWithContext (Proxy :: Proxy api ) pc nt . s
547
547
548
548
route Proxy context subserver =
549
- let querytext r = parseQueryText $ rawQueryString r
549
+ let querytext = queryToQueryText . queryString
550
550
param r = case lookup paramname (querytext r) of
551
551
Just Nothing -> True -- param is there, with no value
552
552
Just (Just v) -> examine v -- param with a value
0 commit comments