From b967d2717351619fd41009b5b55870e0f1644b92 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Wed, 22 Jun 2005 03:20:43 +0000 Subject: * http.c (send_request): Need == after the radix64-encoded basic auth string. --- util/http.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'util/http.c') 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); } } -- cgit v1.2.3