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 }) }