Skip to content

Commit a01f91f

Browse files
committed
include the unsupported http version number in the ensure message
1 parent c1780d6 commit a01f91f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/decode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ where
6363

6464
let version = httparse_req.version;
6565
let version = version.ok_or_else(|| format_err!("No version found"))?;
66-
ensure_eq!(version, HTTP_1_1_VERSION, "Unsupported HTTP version");
66+
ensure_eq!(version, HTTP_1_1_VERSION, "Unsupported HTTP version 1.{}", version);
6767

6868
let mut req = Request::new(Method::from_str(method)?, uri);
6969
for header in httparse_req.headers.iter() {

0 commit comments

Comments
 (0)