From: Stephan Bosch Date: Fri, 17 Mar 2017 22:51:19 +0000 (+0100) Subject: lib-http: client: Make sure a request's log label never gets a duplicate request... X-Git-Tag: 2.3.0.rc1~1906 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a358ecd8918d1280a0b68cdf348c23f6721c799;p=thirdparty%2Fdovecot%2Fcore.git lib-http: client: Make sure a request's log label never gets a duplicate request target part. Make sure the URL part of the label always only consists of a http://host:port part and nothing more. --- diff --git a/src/lib-http/http-client-request.c b/src/lib-http/http-client-request.c index 2e38abeec8..c3af89b431 100644 --- a/src/lib-http/http-client-request.c +++ b/src/lib-http/http-client-request.c @@ -65,8 +65,8 @@ http_client_request_label(struct http_client_request *req) { if (req->label == NULL) { req->label = p_strdup_printf(req->pool, - "[Req%u: %s %s%s]", req->id, - req->method, http_url_create(&req->origin_url), req->target); + "[Req%u: %s %s%s]", req->id, req->method, + http_url_create_host(&req->origin_url), req->target); } return req->label; }