dovecot-2.2: lib-http client: Removed useless assignment of requ...

dovecot at dovecot.org dovecot at dovecot.org
Tue Aug 18 18:02:35 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/34f78bc1eed4
changeset: 18959:34f78bc1eed4
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Tue Aug 18 20:39:24 2015 +0300
description:
lib-http client: Removed useless assignment of request->authority in http_client_request_redirect().
It is assigned again in http_client_request_do_submit().

diffstat:

 src/lib-http/http-client-request.c |  4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diffs (14 lines):

diff -r 5653b61d4c73 -r 34f78bc1eed4 src/lib-http/http-client-request.c
--- a/src/lib-http/http-client-request.c	Tue Aug 18 20:39:24 2015 +0300
+++ b/src/lib-http/http-client-request.c	Tue Aug 18 20:39:24 2015 +0300
@@ -1022,10 +1022,6 @@
 
 	http_url_copy(req->pool, &req->origin_url, url);
 	req->target = p_strdup(req->pool, target);
-	if (req->host_url == &req->origin_url) {
-		req->authority =
-			p_strdup(req->pool, http_url_create_authority(req->host_url));
-	}
 	
 	req->host = NULL;
 	req->conn = NULL;


More information about the dovecot-cvs mailing list