diff options
author | David Shaw <[email protected]> | 2005-06-23 04:26:01 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2005-06-23 04:26:01 +0000 |
commit | ffa685408049f2ee094416bd4e0ebab7706b2d62 (patch) | |
tree | ce4c87f7cb168dc7193116e01ed51b07c3c047e1 /keyserver/gpgkeys_http.c | |
parent | * http.h: Fix prototypes for http_open_document and http_open again, (diff) | |
download | gnupg-ffa685408049f2ee094416bd4e0ebab7706b2d62.tar.gz gnupg-ffa685408049f2ee094416bd4e0ebab7706b2d62.zip |
* gpgkeys_http.c (get_key), gpgkeys_oldhkp (send_key, get_key,
search_key): No longer need to pass a proxyauth.
* gpgkeys_http.c (get_key): Pass auth outside of the URL.
Diffstat (limited to 'keyserver/gpgkeys_http.c')
-rw-r--r-- | keyserver/gpgkeys_http.c | 7 |
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", |