From: Stephan Bosch Date: Wed, 25 Jan 2023 14:17:38 +0000 (+0100) Subject: lib-http: http-client-connection - Remove useless early state transition. X-Git-Tag: 2.4.0~3035 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b85fb2702f93d4635df6bf0619d117a793ab5b96;p=thirdparty%2Fdovecot%2Fcore.git lib-http: http-client-connection - Remove useless early state transition. Happens in http_client_request_callback() already. --- diff --git a/src/lib-http/http-client-connection.c b/src/lib-http/http-client-connection.c index 1cefcf45ba..df22d5a03e 100644 --- a/src/lib-http/http-client-connection.c +++ b/src/lib-http/http-client-connection.c @@ -879,7 +879,6 @@ http_client_connection_return_response(struct http_client_connection *conn, http_client_connection_ref(conn); http_client_connection_ref_request(conn, req); - req->state = HTTP_REQUEST_STATE_GOT_RESPONSE; if (response->payload != NULL) { /* Wrap the stream to capture the destroy event without