Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit f4ea90c

Browse files
committed
Fix broken HTTP minor version parsing.
1 parent 721c421 commit f4ea90c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libhttp/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub fn read_http_version<T: Reader>(reader: &mut T, next_u8: u8) -> Option<(uint
5353
}
5454
match reader.read_byte() {
5555
Some(b) if b >= '0' as u8 && b <= '9' as u8 => {
56-
n2 = n1 * 10 + b as uint - '0' as uint;
56+
n2 = n2 * 10 + b as uint - '0' as uint;
5757
},
5858
Some(b) if b == next_u8 => break,
5959
_ => return None,

0 commit comments

Comments
 (0)