]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: http-client-connection - Remove useless early state transition.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 25 Jan 2023 14:17:38 +0000 (15:17 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 30 Jan 2023 19:48:46 +0000 (19:48 +0000)
Happens in http_client_request_callback() already.

src/lib-http/http-client-connection.c

index 1cefcf45ba85767c171eca781dd98bc679ea340f..df22d5a03e84887c7da90f5a1e4de5084b0d8670 100644 (file)
@@ -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