remove unsupported versions

This commit is contained in:
Nikolay Kim 2020-05-14 19:36:45 +06:00
parent 0f89a586b1
commit 57838b5122

View file

@ -245,12 +245,11 @@ impl MessageType for RequestHeadType {
"{} {} {}",
head.method,
head.uri.path_and_query().map(|u| u.as_str()).unwrap_or("/"),
// only HTTP-0.9/1.1
match head.version {
Version::HTTP_09 => "HTTP/0.9",
Version::HTTP_10 => "HTTP/1.0",
Version::HTTP_11 => "HTTP/1.1",
Version::HTTP_2 => "HTTP/2.0",
Version::HTTP_3 => "HTTP/3.0",
_ =>
return Err(io::Error::new(
io::ErrorKind::Other,