diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/chttpd_auth.erl | 2 | ||||
-rw-r--r-- | src/chttpd_external.erl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/chttpd_auth.erl b/src/chttpd_auth.erl index b15bc933..d1e9a7a5 100644 --- a/src/chttpd_auth.erl +++ b/src/chttpd_auth.erl @@ -233,7 +233,7 @@ ensure_users_db_exists(DbName) -> basic_username_pw(Req) -> case chttpd:header_value(Req, "Authorization") of "Basic " ++ Base64Value -> - case string:tokens(?b2l(couch_util:decodeBase64(Base64Value)),":") of + case string:tokens(?b2l(base64:decode(Base64Value)),":") of [User, Pass] -> {User, Pass}; [User] -> diff --git a/src/chttpd_external.erl b/src/chttpd_external.erl index 0b6b775d..3aff3291 100644 --- a/src/chttpd_external.erl +++ b/src/chttpd_external.erl @@ -146,7 +146,7 @@ parse_external_response({Response}) -> Args#extern_resp_args{data=Value, ctype="text/html; charset=utf-8"}; {<<"base64">>, Value} -> Args#extern_resp_args{ - data=couch_util:decodeBase64(Value), + data=base64:decode(Value), ctype="application/binary" }; {<<"headers">>, {Headers}} -> |