aquatic_http_protocol: send host header for scrape requests too

This commit is contained in:
Joakim Frostegård 2020-08-12 04:23:26 +02:00
parent e6a74c5bfe
commit 7a96313173

View file

@ -85,7 +85,7 @@ impl ScrapeRequest {
first = false;
}
output.write_all(b" HTTP/1.1\r\nConnection: keep-alive\r\n\r\n")?;
output.write_all(b" HTTP/1.1\r\nHost: localhost\r\n\r\n")?;
Ok(())
}