mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-24 15:17:02 +01:00
* http.c (send_request): A zero-length proxy is the same as no proxy at
all. Suggested by J. Scott Berg.
This commit is contained in:
parent
b8b482b596
commit
4fbf91ad9e
@ -1,3 +1,8 @@
|
|||||||
|
2006-07-20 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* http.c (send_request): A zero-length proxy is the same as no
|
||||||
|
proxy at all. Suggested by J. Scott Berg.
|
||||||
|
|
||||||
2006-04-17 David Shaw <dshaw@jabberwocky.com>
|
2006-04-17 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* miscutil.c (make_printable_string): Fix bug where some control
|
* miscutil.c (make_printable_string): Fix bug where some control
|
||||||
|
@ -574,7 +574,7 @@ send_request( HTTP_HD hd, const char *auth, const char *proxy )
|
|||||||
request=xmalloc(strlen(server)*2 + strlen(p)
|
request=xmalloc(strlen(server)*2 + strlen(p)
|
||||||
+ (authstr?strlen(authstr):0)
|
+ (authstr?strlen(authstr):0)
|
||||||
+ (proxy_authstr?strlen(proxy_authstr):0) + 65);
|
+ (proxy_authstr?strlen(proxy_authstr):0) + 65);
|
||||||
if( proxy )
|
if( proxy && *proxy )
|
||||||
sprintf( request, "%s http://%s:%hu%s%s HTTP/1.0\r\n%s%s",
|
sprintf( request, "%s http://%s:%hu%s%s HTTP/1.0\r\n%s%s",
|
||||||
hd->req_type == HTTP_REQ_GET ? "GET" :
|
hd->req_type == HTTP_REQ_GET ? "GET" :
|
||||||
hd->req_type == HTTP_REQ_HEAD? "HEAD":
|
hd->req_type == HTTP_REQ_HEAD? "HEAD":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user