Skip to content

Commit 28c66d8

Browse files
committed
update to newest cookie-rs
1 parent 9bca9e7 commit 28c66d8

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

common/cookie.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl HeaderFormat for Cookies {
5151
let cookies = &self.0;
5252
let last = cookies.len() - 1;
5353
for (i, cookie) in cookies.iter().enumerate() {
54-
try!(write!(fmt, "{}={}", cookie.name, cookie.value));
54+
try!(cookie.pair().fmt(fmt));
5555
if i < last {
5656
try!("; ".fmt(fmt));
5757
}

common/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ pub mod authorization;
3333
/// Exposes the Cookie header.
3434
pub mod cookie;
3535

36-
/// Exposes the Cookie header.
37-
pub mod cookie;
38-
39-
/// Exposes the Set-Cookie header.
40-
pub mod set_cookie;
41-
4236
/// Exposes the Connection header.
4337
pub mod connection;
4438

common/set_cookie.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ impl SetCookie {
5959
/// Use this to create SetCookie header from CookieJar using
6060
/// calculated delta.
6161
pub fn from_cookie_jar(jar: &CookieJar) -> SetCookie {
62-
//FIXME: https://github.com/alexcrichton/cookie-rs/issues/2
63-
SetCookie(jar.delta().into_iter().map(|s| from_str(s[]).unwrap()).collect())
62+
SetCookie(jar.delta())
6463
}
6564
}
6665

0 commit comments

Comments
 (0)