From 7224a3ac783f3cb3b6d93559dd1916dd8394664c Mon Sep 17 00:00:00 2001 From: nujz Date: Sat, 19 Sep 2020 18:27:47 +0800 Subject: [PATCH] actix-router: fix from_hex error --- router/src/url.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/src/url.rs b/router/src/url.rs index 189a9e80..7c0fb742 100644 --- a/router/src/url.rs +++ b/router/src/url.rs @@ -186,7 +186,7 @@ fn from_hex(v: u8) -> Option { Some(v - 0x30) // ord('0') == 0x30 } else if v >= b'A' && v <= b'F' { Some(v - 0x41 + 10) // ord('A') == 0x41 - } else if v > b'a' && v <= b'f' { + } else if v >= b'a' && v <= b'f' { Some(v - 0x61 + 10) // ord('a') == 0x61 } else { None