mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Let hyper automatically add a host header for HTTP/1
This commit is contained in:
parent
3f663d7ab2
commit
19226c5190
4 changed files with 7 additions and 40 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue