client: Allow sending content in DONE state
authorHauke Mehrtens <[email protected]>
Sun, 6 Jul 2025 18:52:17 +0000 (20:52 +0200)
committerHauke Mehrtens <[email protected]>
Sun, 6 Jul 2025 22:58:07 +0000 (00:58 +0200)
commit7e64e8bad2415cec0a6d9770ec379db54273c7a7
treeb4544699c47afa6dfb25263d7091a7a237bff8fd
parentc7294e7037a9e6f8fb4b9084d31cb8e98bd7b5f9
client: Allow sending content in DONE state

Allow sending content even when the connection is in done state. When we
run into an error we will be in CLIENT_STATE_DONE state and have to
write some content to the client. Allow writing in normal DATA and in
DONE state.

This fixes http error 403 in LuCI.

Fixes: b3e3c05d6781 ("client: don't send stray EOF chunk on connection timeout")
Signed-off-by: Hauke Mehrtens <[email protected]>
utils.c