1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-14 21:47:19 +02:00

* http.c (send_request): Need == after the radix64-encoded basic auth

string.
This commit is contained in:
David Shaw 2005-06-22 03:20:43 +00:00
parent a63f5e50f1
commit b967d27173
2 changed files with 9 additions and 4 deletions

View 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);
}
}