]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: http-server-response - Rename http_server_response_free() to http_server_re...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Mon, 11 Nov 2019 16:33:49 +0000 (17:33 +0100)
committermartti.rannanjarvi <martti.rannanjarvi@open-xchange.com>
Sat, 18 Apr 2020 14:55:11 +0000 (14:55 +0000)
src/lib-http/http-server-private.h
src/lib-http/http-server-request.c
src/lib-http/http-server-response.c

index d9ef00bae7c55fcdd21c441899364b57776acc1f..fc3f8c227c04bd27a8068c7d966f0771ca90a086 100644 (file)
@@ -201,7 +201,7 @@ struct http_server {
  * Response
  */
 
-void http_server_response_free(struct http_server_response *resp);
+void http_server_response_request_free(struct http_server_response *resp);
 int http_server_response_send(struct http_server_response *resp);
 int http_server_response_send_more(struct http_server_response *resp);
 int http_server_response_finish_payload_out(struct http_server_response *resp);
index 5688f7888689f0c402994e9dd9ee007ed481d19c..1b3c3e452290eaebea704bd135519b5666b1adb0 100644 (file)
@@ -106,7 +106,7 @@ bool http_server_request_unref(struct http_server_request **_req)
        }
 
        if (req->response != NULL)
-               http_server_response_free(req->response);
+               http_server_response_request_free(req->response);
        event_unref(&req->event);
        pool_unref(&req->pool);
        return FALSE;
@@ -193,7 +193,7 @@ void http_server_request_abort(struct http_server_request **_req,
        }
 
        if (req->response != NULL && !req->response->payload_blocking) {
-               http_server_response_free(req->response);
+               http_server_response_request_free(req->response);
                req->response = NULL;
        }
 
index 3ca82ba621590485eb118400351246635f64193a..3598cd39d4ff5bb95aa511bb9eeaae0211a1572e 100644 (file)
@@ -48,7 +48,7 @@ http_server_response_create(struct http_server_request *req,
                ARRAY_TYPE(string) perm_headers = resp->perm_headers;
                i_zero(&resp->perm_headers);
 
-               http_server_response_free(resp);
+               http_server_response_request_free(resp);
                i_zero(resp);
 
                resp->perm_headers = perm_headers;
@@ -72,9 +72,9 @@ http_server_response_create(struct http_server_request *req,
        return resp;
 }
 
-void http_server_response_free(struct http_server_response *resp)
+void http_server_response_request_free(struct http_server_response *resp)
 {
-       e_debug(resp->event, "Destroy");
+       e_debug(resp->event, "Free");
 
        i_assert(!resp->payload_blocking);