]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: client: Make sure a request's log label never gets a duplicate request...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Fri, 17 Mar 2017 22:51:19 +0000 (23:51 +0100)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 27 Mar 2017 09:43:29 +0000 (12:43 +0300)
Make sure the URL part of the label always only consists of a http://host:port part and nothing more.

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

index 13cdb450e0d7b8fbe0a835ee4bba7e4b12b4d63b..1d974be151fdf9e0e51ea9dfbbb9d53e84c4e1c4 100644 (file)
@@ -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;
 }