mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-27 16:26:40 +03:00
Add additional characters in cookie value
This commit is contained in:
parent
bb44a06a86
commit
c8eebcfd7b
@ -181,7 +181,7 @@ fn cookie_value(reader: &mut Reader) -> CookieValue {
|
||||
c.is_ascii_alphanumeric()
|
||||
|| vec![
|
||||
'!', '#', '$', '%', '&', '\'', '(', ')', '*', '+', '-', '.', '/', ':', '<', '=',
|
||||
'>', '?', '@', '[', ']', '^', '_', '`', '~',
|
||||
'>', '?', '@', '[', ']', '^', '_', '`', '~', '|', '"', ';', ',',
|
||||
]
|
||||
.contains(c)
|
||||
});
|
||||
@ -493,7 +493,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_cookie_error() {
|
||||
let mut reader = Reader::init("Foo: \"Bar\"");
|
||||
let mut reader = Reader::init("Foo: {Bar}");
|
||||
let error = cookie(&mut reader).err().unwrap();
|
||||
assert_eq!(error.pos, Pos { line: 1, column: 6 });
|
||||
assert!(!error.recoverable);
|
||||
@ -519,7 +519,7 @@ mod tests {
|
||||
assert_eq!(
|
||||
cookie_value(&mut reader),
|
||||
CookieValue {
|
||||
value: String::from("")
|
||||
value: String::from("\"Bar\"")
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user