Skip to content

Commit

Permalink
Always send a SP after status code, even if no reason is given (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
showier-drastic authored Oct 9, 2024
1 parent eb85ecd commit 8c40cf9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions edge-http/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1211,11 +1211,10 @@ mod raw {
written = true;
}

if written {
output.write_all(b" ").await.map_err(Error::Io)?;
}
if let Some(extra) = extra {
if written {
output.write_all(b" ").await.map_err(Error::Io)?;
}

output
.write_all(extra.as_bytes())
.await
Expand Down

0 comments on commit 8c40cf9

Please sign in to comment.