* http.c (send_request): Need == after the radix64-encoded basic auth
authorDavid Shaw <dshaw@jabberwocky.com>
Wed, 22 Jun 2005 03:20:43 +0000 (03:20 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Wed, 22 Jun 2005 03:20:43 +0000 (03:20 +0000)
string.

util/ChangeLog
util/http.c

index 688d6f6..d9ee080 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-21  David Shaw  <dshaw@jabberwocky.com>
+
+       * http.c (send_request): Need == after the radix64-encoded basic
+       auth string.
+
 2005-06-08  David Shaw  <dshaw@jabberwocky.com>
 
        * dotlock.c [HAVE_DOSISH_SYSTEM]: Fix unused function warnings on
index 33349dc..125f68c 100644 (file)
@@ -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);
          }
       }