Skip to content

Commit 8c40cf9

Browse files
Always send a SP after status code, even if no reason is given (#36)
1 parent eb85ecd commit 8c40cf9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

edge-http/src/io.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,11 +1211,10 @@ mod raw {
12111211
written = true;
12121212
}
12131213

1214+
if written {
1215+
output.write_all(b" ").await.map_err(Error::Io)?;
1216+
}
12141217
if let Some(extra) = extra {
1215-
if written {
1216-
output.write_all(b" ").await.map_err(Error::Io)?;
1217-
}
1218-
12191218
output
12201219
.write_all(extra.as_bytes())
12211220
.await

0 commit comments

Comments
 (0)