-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
The function parseStatusLine expects "HTTP/1.X" but we have already "HTTP/2". For me, I get Parse exception: not enough input, not sure the cause, but maybe this function is a problem:
parseStatusLine :: Parser (Int, ByteString)
parseStatusLine = do
sc <- string "HTTP/1." *> satisfy version *> char ' ' *> decimal <* char ' '
sm <- takeTill (== '\r') <* crlf
return (sc, sm)
where
version c = c == '1' || c == '0'
?
Metadata
Metadata
Assignees
Labels
No labels