Skip to content

Commit

Permalink
chore(dependencies): update openssl to 0.7 and cookie to 0.2
Browse files Browse the repository at this point in the history
Closes #686
  • Loading branch information
seanmonstar committed Nov 20, 2015
1 parent d44ee59 commit 81d42c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ unicase = "1.0"
url = "0.2"

[dependencies.cookie]
version = "0.1"
version = "0.2"
default-features = false

[dependencies.openssl]
version = "0.6.4"
version = "0.7"
optional = true

[dependencies.solicit]
Expand Down
2 changes: 1 addition & 1 deletion src/header/common/set_cookie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ fn test_fmt() {

assert_eq!(
&headers.to_string()[..],
"Set-Cookie: foo=bar; HttpOnly; Path=/p\r\nSet-Cookie: baz=quux; Path=/\r\n");
"Set-Cookie: foo=bar; HttpOnly; Path=/p\r\nSet-Cookie: baz=quux\r\n");
}

#[test]
Expand Down
8 changes: 4 additions & 4 deletions src/http/h2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,8 @@ mod tests {
let h2headers = prepare_headers(headers);

assert_eq!(vec![
(b"set-cookie".to_vec(), b"foo=bar; Path=/".to_vec()),
(b"set-cookie".to_vec(), b"baz=quux; Path=/".to_vec()),
(b"set-cookie".to_vec(), b"foo=bar".to_vec()),
(b"set-cookie".to_vec(), b"baz=quux".to_vec()),
], h2headers);
}

Expand Down Expand Up @@ -700,8 +700,8 @@ mod tests {
#[test]
fn test_http2_parse_headers_with_set_cookie() {
let h2headers = vec![
(b"set-cookie".to_vec(), b"foo=bar; Path=/".to_vec()),
(b"set-cookie".to_vec(), b"baz=quux; Path=/".to_vec()),
(b"set-cookie".to_vec(), b"foo=bar".to_vec()),
(b"set-cookie".to_vec(), b"baz=quux".to_vec()),
];
let expected = header::SetCookie(vec![
cookie::Cookie::new("foo".to_owned(), "bar".to_owned()),
Expand Down

1 comment on commit 81d42c9

@SimonSapin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you publish this on crates.io? Thanks!

Please sign in to comment.