From b967d2717351619fd41009b5b55870e0f1644b92 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Wed, 22 Jun 2005 03:20:43 +0000 Subject: [PATCH] * http.c (send_request): Need == after the radix64-encoded basic auth string. --- util/ChangeLog | 5 +++++ 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 + + * http.c (send_request): Need == after the radix64-encoded basic + auth string. + 2005-06-08 David Shaw * 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); } }