http: don't check transfer._header_done_called on RecvError

This commit is contained in:
Pierre Tachoire
2026-03-25 08:23:23 +01:00
parent bad690da65
commit 92ce6a916a

View File

@@ -858,7 +858,6 @@ fn processMessages(self: *Client) !bool {
const is_conn_close_recv = blk: {
const err = msg.err orelse break :blk false;
if (err != error.RecvError) break :blk false;
if (!transfer._header_done_called) break :blk false;
const hdr = msg.conn.getResponseHeader("connection", 0) orelse break :blk false;
break :blk std.ascii.eqlIgnoreCase(hdr.value, "close");
};