aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver/gpgkeys_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyserver/gpgkeys_http.c')
-rw-r--r--keyserver/gpgkeys_http.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/keyserver/gpgkeys_http.c b/keyserver/gpgkeys_http.c
index 10178b878..158fec9ad 100644
--- a/keyserver/gpgkeys_http.c
+++ b/keyserver/gpgkeys_http.c
@@ -73,10 +73,11 @@ get_key(char *getkey)
return KEYSERVER_NO_MEMORY;
}
- sprintf(request,"http://%s%s%s%s%s%s%s",auth[0]?auth:"",auth[0]?"@":"",
- host,port[0]?":":"",port[0]?port:"",path[0]?"":"/",path);
+ sprintf(request,"http://%s%s%s%s%s",host,
+ port[0]?":":"",port[0]?port:"",path[0]?"":"/",path);
- rc=http_open_document(&hd,request,NULL,http_flags,proxy[0]?proxy:NULL,NULL);
+ rc=http_open_document(&hd,request,auth[0]?auth:NULL,
+ http_flags,proxy[0]?proxy:NULL);
if(rc!=0)
{
fprintf(console,"gpgkeys: HTTP fetch error: %s\n",