Re: [PATCH v3 0/4] MR6216: httpapi: Implement HttpResponseSendEntityBody
Elizabeth Figura (@zfigura) commented about dlls/http.sys/http.c:
{ if (send(conn->socket, response->buffer, response->len, 0) >= 0) { - if (conn->content_len) - { - /* Discard whatever entity body is left. */ - memmove(conn->buffer, conn->buffer + conn->content_len, conn->len - conn->content_len); - conn->len -= conn->content_len; + /* Clean up the connection if we are not sending more response data. */ + if (response->response_flags != HTTP_SEND_RESPONSE_FLAG_MORE_DATA) {
Brace on a new line, please, to match the existing style. There's another instance in 4/4. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6216#note_78211
participants (1)
-
Elizabeth Figura (@zfigura)