diff --git a/src/http/h1/parse.rs b/src/http/h1/parse.rs index 814eab67..f59d64ef 100644 --- a/src/http/h1/parse.rs +++ b/src/http/h1/parse.rs @@ -282,6 +282,11 @@ mod tests { parse::(&raw).unwrap(); } + #[test] + fn test_parse_request_errors() { + let raw = MemBuf::from(b"GET htt:p// HTTP/1.1\r\nHost: hyper.rs\r\n\r\n".to_vec()); + parse::(&raw).unwrap_err(); + } #[test] fn test_parse_raw_status() { let raw = MemBuf::from(b"HTTP/1.1 200 OK\r\n\r\n".to_vec());