File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ impl CookieData {
83
83
for cookie_header in cookie_headers {
84
84
// spec says there should be only one, so this is permissive
85
85
for pair in cookie_header. as_str ( ) . split ( ";" ) {
86
- if let Ok ( cookie) = Cookie :: parse ( String :: from ( pair) ) {
86
+ if let Ok ( cookie) = Cookie :: parse_encoded ( String :: from ( pair) ) {
87
87
jar. add_original ( cookie) ;
88
88
}
89
89
}
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ fn make_request(endpoint: &str) -> http_types::Response {
53
53
) ;
54
54
req. insert_header (
55
55
http_types:: headers:: COOKIE ,
56
- "testCookie=RequestCookieValue; secondTestCookie=OtherCookieValue " ,
56
+ "testCookie=RequestCookieValue; secondTestCookie=Other%3BCookie%20Value " ,
57
57
)
58
58
. unwrap ( ) ;
59
59
@@ -71,7 +71,7 @@ fn successfully_retrieve_request_cookie() {
71
71
String :: from_utf8 ( buffer) . unwrap ( )
72
72
} ) ;
73
73
74
- assert_eq ! ( & body, "RequestCookieValue and also OtherCookieValue " ) ;
74
+ assert_eq ! ( & body, "RequestCookieValue and also Other;Cookie Value " ) ;
75
75
}
76
76
77
77
#[ test]
You can’t perform that action at this time.
0 commit comments