diff options
author | bptato <nincsnevem662@gmail.com> | 2021-02-02 21:14:46 +0000 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-02-02 21:14:46 +0000 |
commit | e4570e8b6e17382e1cc4984684f861524d5b02f4 (patch) | |
tree | 37b0dc1979c6f020f0c2095891a2bba796b306b0 /file.c | |
parent | Avoid having external programs download images (diff) | |
download | w3m-e4570e8b6e17382e1cc4984684f861524d5b02f4.tar.gz w3m-e4570e8b6e17382e1cc4984684f861524d5b02f4.zip |
Support iTerm2 graphics protocol, replace encodeB with base64_encode
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |