on master help sign in
proper signature.
commit34a82a6ca74e35becd5d66f72fbf5faa2137fc35 authorKazu Yamamoto <kazu@iij.ad.jp> dateSat 2 Nov 2013, 16:06 (13 years ago) parent9498090
1 file changed+4−1
warp/Network/Wai/Handler/Warp/RequestHeader.hs+4−1
warp/Network/Wai/Handler/Warp/RequestHeader.hs+4−1
@@ -44,7 +44,10 @@ parseHeaderLines (firstLine:otherLines) = do
4444-- >>> parseRequestLine "GET /NotHTTP UNKNOWN/1.1"
4545-- *** Exception: NonHttp
4646parseRequestLine :: ByteString
47− -> IO (ByteString, ByteString, ByteString, H.HttpVersion)
47+ -> IO (H.Method
48+ ,ByteString -- Path
49+ ,ByteString -- Query
50+ ,H.HttpVersion)
4851parseRequestLine requestLine = do
4952 let (method,rest) = S.breakByte 32 requestLine -- ' '
5053 (pathQuery,httpVer') = S.breakByte 32 (S.drop 1 rest) -- ' '