aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-09-28 10:26:44 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-09-28 10:26:44 +0000
commit13962adcb55a676b0b47925680b2e17b3e4815f0 (patch)
treed1a53e3d0ebafde09e27e6cdd01b5e2948e78e1b /lib/http.c
parent221f1c2ca288ce33501e867f1df45f4d84fbe8e5 (diff)
7.3 commit
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c
index d4a3da1c0..4e3471b36 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -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);