Skip to content

Commit

Permalink
fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Apr 5, 2020
1 parent b2cb7e0 commit 79f161d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ntex/tests/http_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,17 +360,17 @@ async fn test_content_length() {

{
for i in 0..4 {
let req = srv.request(http::Method::GET, srv.url(&format!("/{}", i)));
let req = srv.request(http::Method::GET, &format!("/{}", i));
let response = req.send().await.unwrap();
assert_eq!(response.headers().get(&header), None);

let req = srv.request(http::Method::HEAD, srv.url(&format!("/{}", i)));
let req = srv.request(http::Method::HEAD, &format!("/{}", i));
let response = req.send().await.unwrap();
assert_eq!(response.headers().get(&header), None);
}

for i in 4..6 {
let req = srv.request(http::Method::GET, srv.url(&format!("/{}", i)));
let req = srv.request(http::Method::GET, &format!("/{}", i));
let response = req.send().await.unwrap();
assert_eq!(response.headers().get(&header), Some(&value));
}
Expand Down

0 comments on commit 79f161d

Please sign in to comment.