diff options
author | David Shaw <[email protected]> | 2005-06-22 03:20:43 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2005-06-22 03:20:43 +0000 |
commit | b967d2717351619fd41009b5b55870e0f1644b92 (patch) | |
tree | 951ffc2a10e18627ce50edc6e301ab9cdfb6d1ee /util/http.c | |
parent | Post release version number update (diff) | |
download | gnupg-b967d2717351619fd41009b5b55870e0f1644b92.tar.gz gnupg-b967d2717351619fd41009b5b55870e0f1644b92.zip |
* http.c (send_request): Need == after the radix64-encoded basic auth
string.
Diffstat (limited to '')
-rw-r--r-- | util/http.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/http.c b/util/http.c index 33349dce4..125f68c56 100644 --- a/util/http.c +++ b/util/http.c @@ -530,8 +530,8 @@ send_request( HTTP_HD hd, const char *proxy ) if(uri->auth) { char *x=make_radix64_string(uri->auth,strlen(uri->auth)); - auth=m_alloc(50+strlen(x)); - sprintf(auth,"Proxy-Authorization: Basic %s\r\n",x); + auth=m_alloc(52+strlen(x)); + sprintf(auth,"Proxy-Authorization: Basic %s==\r\n",x); m_free(x); } @@ -543,8 +543,8 @@ send_request( HTTP_HD hd, const char *proxy ) if(hd->uri->auth) { char *x=make_radix64_string(hd->uri->auth,strlen(hd->uri->auth)); - auth=m_alloc(50+strlen(x)); - sprintf(auth,"Authorization: Basic %s\r\n",x); + auth=m_alloc(52+strlen(x)); + sprintf(auth,"Authorization: Basic %s==\r\n",x); m_free(x); } } |