Do not send deferred headers in write method

This commit is contained in:
boommy
2026-03-03 17:13:44 +04:00
parent 03075b729d
commit 791d1906a5

View File

@@ -491,10 +491,9 @@ impl pipe::Sink for StreamSink {
}
fn write(&mut self, data: Bytes) -> io::Result<Bytes> {
self.try_send_pending_response()?;
if self.pending_response.is_some() {
log_id!(
debug,
error,
self.id,
"Body write deferred: response headers not yet sent"
);