Let hyper automatically add a host header for HTTP/1

This commit is contained in:
Jan Andre Ikenmeyer 2019-12-14 15:51:24 +01:00
parent 3f663d7ab2
commit 19226c5190
No known key found for this signature in database
GPG key ID: 28F9E42748DD95AE
4 changed files with 7 additions and 40 deletions

View file

@ -257,11 +257,6 @@ fn test_request_and_response_data_with_network_messages() {
header::ACCEPT_ENCODING,
HeaderValue::from_static("gzip, deflate, br"),
);
headers.typed_insert(Host::from(
format!("{}:{}", url.host_str().unwrap(), url.port().unwrap())
.parse::<Authority>()
.unwrap(),
));
headers.insert(
header::ACCEPT,