* http.c (send_request): A zero length proxy is the same as no proxy.
authorDavid Shaw <dshaw@jabberwocky.com>
Sun, 19 Feb 2006 21:03:01 +0000 (21:03 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Sun, 19 Feb 2006 21:03:01 +0000 (21:03 +0000)
util/ChangeLog
util/http.c

index aaf88f4..dd7b85f 100644 (file)
@@ -1,3 +1,8 @@
+2006-02-19  David Shaw  <dshaw@jabberwocky.com>
+
+       * http.c (send_request): A zero length proxy is the same as no
+       proxy.
+
 2006-02-14  Werner Koch  <wk@gnupg.org>
 
        * errors.c (g10_errstr): Add NO_DATA.
index 90a6005..b5dc682 100644 (file)
@@ -518,7 +518,7 @@ send_request( HTTP_HD hd, const char *auth, const char *proxy )
     server = *hd->uri->host? hd->uri->host : "localhost";
     port   = hd->uri->port?  hd->uri->port : 80;
 
-    if(proxy)
+    if(proxy && *proxy)
       {
        PARSED_URI uri;