diff options
-rw-r--r-- | util/ChangeLog | 5 | ||||
-rw-r--r-- | util/http.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/util/ChangeLog b/util/ChangeLog index 688d6f64a..d9ee080c9 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,8 @@ +2005-06-21 David Shaw <[email protected]> + + * http.c (send_request): Need == after the radix64-encoded basic + auth string. + 2005-06-08 David Shaw <[email protected]> * dotlock.c [HAVE_DOSISH_SYSTEM]: Fix unused function warnings on 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); } } |