summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-07-09 21:32:40 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-12 11:18:48 -0400
commitff2c290a40754cb9aa87dbba0bdbb633e1fc4295 (patch)
treeab1847e40d8ca35fc1d4d432fd812430c8f61169 /src
parentf8f690c293a52b961e232a36819777a7105abb92 (diff)
use base64 library instead of old couch_util impl
Diffstat (limited to 'src')
-rw-r--r--src/chttpd_auth.erl2
-rw-r--r--src/chttpd_external.erl2
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}} ->