mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-25 03:52:09 +03:00
Accept more characters in the cookie-value
This commit is contained in:
parent
88f94f97da
commit
379bd5aac2
@ -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 })
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user