Skip to content

Commit

Permalink
Replace deprecated parseUrl with parseRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
erikd committed Jul 6, 2016
1 parent 510c787 commit c6896cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Network/HTTP/Proxy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ doUpstreamRequest settings mgr respond mwreq
respond $ responseRawSource (handleConnect mwreq)
(Wai.responseLBS HT.status500 [("Content-Type", "text/plain")] "No support for responseRaw")
| otherwise = do
hreq0 <- HC.parseUrl $ BS.unpack (Wai.rawPathInfo mwreq <> Wai.rawQueryString mwreq)
hreq0 <- HC.parseRequest $ BS.unpack (Wai.rawPathInfo mwreq <> Wai.rawQueryString mwreq)
let hreq = hreq0
{ HC.method = Wai.requestMethod mwreq
, HC.requestHeaders = filter dropRequestHeader $ Wai.requestHeaders mwreq
Expand Down
2 changes: 1 addition & 1 deletion Test/Request.hs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ mkTestRequest method scheme path mbody = do
Http -> httpTestPort portsDef
Https -> httpsTestPort portsDef
url = map toLower (show scheme) ++ "://localhost:" ++ port ++ path
req <- HC.parseUrl url
req <- HC.parseRequest url
return $ req
{ HC.method = if HC.method req /= method then method else HC.method req
, HC.requestBody = fromMaybe (HC.requestBody req) mbody
Expand Down

0 comments on commit c6896cc

Please sign in to comment.