Fix compilation errors with the cookies feature (#22)

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

No files matched your search

+2
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;