This commit is contained in:
Kovid Goyal
2024-05-14 20:32:34 +05:30
parent fed26ff77f
commit 8a175010e6

View File

@@ -112,7 +112,7 @@ func do_chunked_io(io_data *rc_io_data) (serialized_response []byte, err error)
return err
}
if len(chunk) == 0 {
state = utils.IfElse(state == BEFORE_FIRST_ESCAPE_CODE_SENT && wants_streaming, WAITING_FOR_STREAMING_RESPONSE, WAITING_FOR_STREAMING_RESPONSE)
state = utils.IfElse(state == BEFORE_FIRST_ESCAPE_CODE_SENT && wants_streaming, WAITING_FOR_STREAMING_RESPONSE, WAITING_FOR_RESPONSE)
transition_to_read()
} else {
queue_escape_code(chunk)