We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d285f15 commit 737c8aeCopy full SHA for 737c8ae
src/client.rs
@@ -65,15 +65,6 @@ pub async fn encode(req: Request) -> Result<Encoder, std::io::Error> {
65
log::trace!("> {}", &val);
66
buf.write_all(val.as_bytes()).await?;
67
68
- let val = format!(
69
- "Host: {}\r\n",
70
- req.url()
71
- .host_str()
72
- .ok_or_else(|| io::Error::new(io::ErrorKind::Other, "Missing hostname"))?
73
- );
74
- log::trace!("> {}", &val);
75
- buf.write_all(val.as_bytes()).await?;
76
-
77
// If the body isn't streaming, we can set the content-length ahead of time. Else we need to
78
// send all items in chunks.
79
if let Some(len) = req.len() {
0 commit comments