CookieStore cleanup/fixes

* Remove TODO
* Remove Cookie::set_ setters
* Do not expose SameSite enum, provide getters on Cookie instead
* Simplify Response::cookies signature (now ignores errors)
This commit is contained in:
Christoph Herzog
2019-03-26 13:00:07 +01:00
committed by Sean McArthur
parent 954fdfae30
commit 9935a8e117
5 changed files with 17 additions and 98 deletions

View File

@@ -546,7 +546,6 @@ impl Client {
.collect::<Vec<_>>()
.join("; ");
if !header.is_empty() {
// TODO: is it safe to unwrap here? Investigate if Cookie content is always valid.
headers.insert(::header::COOKIE, HeaderValue::from_bytes(header.as_bytes()).unwrap());
}
}