ocaml-cohttp
ocaml-cohttp copied to clipboard
Added check to parser header till trailing \r\n
This PR addresses #1032 . Here we basically raise Exception whenever we find a incorrect section while parsing headers.
@rgrinberg can you please check this
Why do we need a separate exception for invalid headers? Why can't we just raise whatever we raise when we fail to parse the request for any other reason? E.g. Content-Length isn't a valid number for example.
@rgrinberg i cannot find the exception we raise for such issues. Could you please show which exception are you referring to