diff --git a/edge-http/src/io.rs b/edge-http/src/io.rs index 07cabb3..390cd2c 100644 --- a/edge-http/src/io.rs +++ b/edge-http/src/io.rs @@ -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