aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2021-02-02 21:14:46 +0000
committerbptato <nincsnevem662@gmail.com>2021-02-02 21:14:46 +0000
commite4570e8b6e17382e1cc4984684f861524d5b02f4 (patch)
tree37b0dc1979c6f020f0c2095891a2bba796b306b0 /file.c
parentAvoid having external programs download images (diff)
downloadw3m-e4570e8b6e17382e1cc4984684f861524d5b02f4.tar.gz
w3m-e4570e8b6e17382e1cc4984684f861524d5b02f4.zip
Support iTerm2 graphics protocol, replace encodeB with base64_encode
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 1ab1c55..0e6a79a 100644
--- a/file.c
+++ b/file.c
@@ -1175,7 +1175,7 @@ AuthBasicCred(struct http_auth *ha, Str uname, Str pw, ParsedURL *pu,
Str s = Strdup(uname);
Strcat_char(s, ':');
Strcat(s, pw);
- return Strnew_m_charp("Basic ", encodeB(s->ptr)->ptr, NULL);
+ return Strnew_m_charp("Basic ", base64_encode(s->ptr, s->length), NULL);
}
#ifdef USE_DIGEST_AUTH