summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_httpd.erl
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2010-05-04 02:01:00 +0000
committerAdam Kocoloski <kocolosk@apache.org>2010-05-04 02:01:00 +0000
commit33b3524268195a0798993690b54cead286da28fb (patch)
tree3522835f347d8671d44a9e9f966bd3fc4604699e /src/couchdb/couch_httpd.erl
parentc2ddcc5d1c5fcbe712031df19ecc12c781d8b613 (diff)
use keysearch BIF to search ejson props. Closes COUCHDB-747
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@940708 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_httpd.erl')
-rw-r--r--src/couchdb/couch_httpd.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl
index f9cb7f40..db9fee49 100644
--- a/src/couchdb/couch_httpd.erl
+++ b/src/couchdb/couch_httpd.erl
@@ -163,7 +163,7 @@ handle_request(MochiReq, DefaultFun,
Vhost = MochiReq:get_header_value("Host"),
% find Vhost in config
- case proplists:get_value(Vhost, VirtualHosts) of
+ case couch_util:get_value(Vhost, VirtualHosts) of
undefined -> % business as usual
handle_request_int(MochiReq, DefaultFun,
UrlHandlers, DbUrlHandlers, DesignUrlHandlers);
@@ -336,7 +336,7 @@ qs_value(Req, Key) ->
qs_value(Req, Key, undefined).
qs_value(Req, Key, Default) ->
- proplists:get_value(Key, qs(Req), Default).
+ couch_util:get_value(Key, qs(Req), Default).
qs(#httpd{mochi_req=MochiReq}) ->
MochiReq:parse_qs().
@@ -742,7 +742,7 @@ nil_callback(_Data)->
get_boundary(ContentType) ->
{"multipart/" ++ _, Opts} = mochiweb_util:parse_header(ContentType),
- case proplists:get_value("boundary", Opts) of
+ case couch_util:get_value("boundary", Opts) of
S when is_list(S) ->
S
end.