Fix compilation errors with the cookies feature (#22)

* Fix compilation errors with the cookies feature
This commit is contained in:
Tom Forbes
2019-10-30 10:51:06 +00:00
committed by Martin Algesten
parent e9ca3b26d5
commit 594340a096
3 changed files with 26 additions and 16 deletions

View File

@@ -25,6 +25,7 @@ fn agent_reuse_headers() {
assert_eq!(resp.header("X-Call").unwrap(), "2");
}
#[cfg(feature = "cookie")]
#[test]
fn agent_cookies() {
let agent = agent();
@@ -53,6 +54,7 @@ fn agent_cookies() {
}
#[test]
#[cfg(feature = "tls")]
fn connection_reuse() {
use std::io::Read;
use std::time::Duration;