]> 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)
committerGitLab <gitlab@git.dovecot.net>
Wed, 22 Mar 2017 18:41:09 +0000 (20:41 +0200)
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 2e38abeec892d3f5d39a39eb83fd77a71e2a0a90..c3af89b431d634fd302f1d60223edd694d09936e 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;
 }