diff options
author | Damien F. Katz <damien@apache.org> | 2008-10-22 03:08:53 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2008-10-22 03:08:53 +0000 |
commit | 50decd4044bb8fcfd22c485e064a11d63fa15a2d (patch) | |
tree | 87c984effe7f270ad341bc66a565d5364a5cd505 /src/couchdb/couch_db.hrl | |
parent | 561b9852b792bae344ad87b02b14f8e3f712a13e (diff) |
First check-in of admin http authentication and authorization.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@706848 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_db.hrl')
-rw-r--r-- | src/couchdb/couch_db.hrl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/couchdb/couch_db.hrl b/src/couchdb/couch_db.hrl index bf98e182..d1825d9e 100644 --- a/src/couchdb/couch_db.hrl +++ b/src/couchdb/couch_db.hrl @@ -17,6 +17,9 @@ -define(JSON_ENCODE(V), mochijson2:encode(V)). -define(JSON_DECODE(V), mochijson2:decode(V)). +-define(b2l(V), binary_to_list(V)). +-define(l2b(V), list_to_binary(V)). + -define(DEFAULT_ATTACHMENT_CONTENT_TYPE, <<"application/octet-stream">>). -define(LOG_DEBUG(Format, Args), |