]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Network/HTTP/Lucu/Resource.hs
fixed a bug of getQueryForm
[Lucu.git] / Network / HTTP / Lucu / Resource.hs
index 12056ee8ec4fd2ac73fa9c8aac1682cdf1e88bd3..d3967edf8ab5224c7e08dd2e1285669223f26944 100644 (file)
@@ -294,7 +294,7 @@ getPathInfo = do rsrcPath <- getResourcePath
 -- doesn't parse the request body. See 'inputForm'.
 getQueryForm :: Resource [(String, String)]
 getQueryForm = do uri <- getRequestURI
-                  return $! parseWWWFormURLEncoded $ uriQuery uri
+                  return $! parseWWWFormURLEncoded $ snd $ splitAt 1 $ uriQuery uri
 
 -- |Get a value of given request header. Comparison of header name is
 -- case-insensitive. Note that this action is not intended to be used