1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-08-03 19:25:05 +00:00

add space to cookie header

This commit is contained in:
Nikolay Kim 2018-03-09 05:38:07 -08:00
parent 1c6ddfd34c
commit f8b8fe3865

View file

@ -545,10 +545,10 @@ impl ClientRequestBuilder {
for c in jar.delta() {
let name = percent_encode(c.name().as_bytes(), USERINFO_ENCODE_SET);
let value = percent_encode(c.value().as_bytes(), USERINFO_ENCODE_SET);
let _ = write!(&mut cookie, ";{}={}", name, value);
let _ = write!(&mut cookie, "; {}={}", name, value);
}
request.headers.insert(
header::COOKIE, HeaderValue::from_str(&cookie.as_str()[1..]).unwrap());
header::COOKIE, HeaderValue::from_str(&cookie.as_str()[2..]).unwrap());
}
request.body = body.into();
Ok(request)