From ab7079bbf659ef1ca0c0321dff72d51f240520b7 Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Wed, 27 Feb 2019 21:14:36 +0100 Subject: [PATCH] lib-http: http-server-connection - Use connection->label instead of connection->name. --- src/lib-http/http-server-connection.c | 3 ++- src/lib-http/http-server-private.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib-http/http-server-connection.c b/src/lib-http/http-server-connection.c index 36afdcd96b..e80b121383 100644 --- a/src/lib-http/http-server-connection.c +++ b/src/lib-http/http-server-connection.c @@ -1055,7 +1055,8 @@ http_server_connection_pending_payload(struct http_server_connection *conn) static struct connection_settings http_server_connection_set = { .input_max_size = (size_t)-1, .output_max_size = (size_t)-1, - .client = FALSE + .client = FALSE, + .log_connection_id = TRUE, }; static const struct connection_vfuncs http_server_connection_vfuncs = { diff --git a/src/lib-http/http-server-private.h b/src/lib-http/http-server-private.h index 5820f67bfc..1647c3206f 100644 --- a/src/lib-http/http-server-private.h +++ b/src/lib-http/http-server-private.h @@ -238,7 +238,7 @@ void http_server_payload_handler_switch_ioloop( static inline const char * http_server_connection_label(struct http_server_connection *conn) { - return conn->conn.name; + return conn->conn.label; } static inline void