From 379bd5aac2121e01aec2692ddb629cb8b686a78c Mon Sep 17 00:00:00 2001 From: Fabrice Reix Date: Fri, 22 Jan 2021 07:49:48 +0100 Subject: [PATCH] Accept more characters in the cookie-value --- packages/hurl_core/src/parser/sections.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/hurl_core/src/parser/sections.rs b/packages/hurl_core/src/parser/sections.rs index 5d9301d8d..a1b0aa8b0 100644 --- a/packages/hurl_core/src/parser/sections.rs +++ b/packages/hurl_core/src/parser/sections.rs @@ -165,13 +165,11 @@ fn cookie_value(reader: &mut Reader) -> ParseResult<'static, CookieValue> { //let start = reader.state.clone(); let value = reader.read_while(|c| { c.is_ascii_alphanumeric() - || *c == '_' - || *c == '-' - || *c == '/' - || *c == '%' - || *c == '[' - || *c == ']' - || *c == '.' + || vec![ + '!', '#', '$', '%', '&', '\'', '(', ')', '*', '+', '-', '.', '/', ':', '<', '=', + '>', '?', '@', '[', ']', '^', '_', '`', '~', + ] + .contains(&c) }); Ok(CookieValue { value }) }