Parse query string parameters from URLs

This commit is contained in:
Michael Snoyman 2013-02-28 07:28:34 +02:00
parent dcecc1dc12
commit aafecf5787
2 changed files with 7 additions and 3 deletions

View File

@ -437,9 +437,13 @@ doRequestHeaders method url extrahead paramsBuild = do
{ requestMethod = method
, remoteHost = Sock.SockAddrInet 1 2
, requestHeaders = headers
, rawPathInfo = url
, pathInfo = DL.filter (/="") $ T.split (== '/') $ TE.decodeUtf8 url
, rawPathInfo = urlPath
, pathInfo = DL.filter (/="") $ T.split (== '/') $ TE.decodeUtf8 urlPath
, rawQueryString = urlQuery
, queryString = H.parseQuery urlQuery
}
(urlPath, urlQuery) = BS8.break (== '?') url
-- | Run a persistent db query. For asserting on the results of performed actions
-- or setting up pre-conditions. At the moment this part is still very raw.

View File

@ -1,5 +1,5 @@
name: yesod-test
version: 0.3.3.2
version: 0.3.4
license: MIT
license-file: LICENSE
author: Nubis <nubis@woobiz.com.ar>