We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84e10de commit 0fa6005Copy full SHA for 0fa6005
src/lib.rs
@@ -71,7 +71,7 @@ static URI_MAP: [bool; 256] = byte_map![
71
// 0 1 2 3 4 5 6 7 8 9 : ; < = > ?
72
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
73
// @ A B C D E F G H I J K L M N O
74
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
75
// P Q R S T U V W X Y Z [ \ ] ^ _
76
77
// ` a b c d e f g h i j k l m n o
@@ -983,6 +983,17 @@ mod tests {
983
}
984
985
986
+ req! {
987
+ test_request_path_backslash,
988
+ b"\n\nGET /\\?wayne\\=5 HTTP/1.1\n\n",
989
+ |req| {
990
+ assert_eq!(req.method.unwrap(), "GET");
991
+ assert_eq!(req.path.unwrap(), "/\\?wayne\\=5");
992
+ assert_eq!(req.version.unwrap(), 1);
993
+ assert_eq!(req.headers.len(), 0);
994
+ }
995
996
+
997
req! {
998
test_request_with_invalid_token_delimiter,
999
b"GET\n/ HTTP/1.1\r\nHost: foo.bar\r\n\r\n",
0 commit comments