7.3 commit

This commit is contained in:
Daniel Stenberg
2000-09-28 10:26:44 +00:00
parent 221f1c2ca2
commit 13962adcb5
13 changed files with 228 additions and 133 deletions

View File

@@ -295,7 +295,7 @@ CURLcode http(struct connectdata *conn)
!data->auth_host ||
strequal(data->auth_host, data->hostname)) {
sprintf(data->buffer, "%s:%s", data->user, data->passwd);
if(base64Encode(data->buffer, 0, /* size zero makes it do strlen() */
if(base64_encode(data->buffer, strlen(data->buffer),
&authorization) >= 0) {
data->ptr_userpwd = maprintf( "Authorization: Basic %s\015\012",
authorization);