cargo fmt (#151)

This commit is contained in:
Martin Algesten
2020-09-19 09:28:39 +02:00
committed by GitHub
parent b87299e988
commit 155edeef19
2 changed files with 21 additions and 7 deletions

View File

@@ -363,7 +363,11 @@ fn send_prelude(unit: &Unit, stream: &mut Stream, redir: bool) -> IoResult<()> {
}
}
if !header::has_header(&unit.headers, "user-agent") {
write!(prelude, "User-Agent: ureq/{}\r\n", env!("CARGO_PKG_VERSION"))?;
write!(
prelude,
"User-Agent: ureq/{}\r\n",
env!("CARGO_PKG_VERSION")
)?;
}
if !header::has_header(&unit.headers, "accept") {
write!(prelude, "Accept: */*\r\n")?;