You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by jc...@apache.org on 2009/03/13 22:51:57 UTC
svn commit: r753441 -
/couchdb/branches/rep_security/src/couchdb/couch_httpd_show.erl
Author: jchris
Date: Fri Mar 13 21:51:56 2009
New Revision: 753441
URL: http://svn.apache.org/viewvc?rev=753441&view=rev
Log:
fix list_views with nil rev not []
Modified:
couchdb/branches/rep_security/src/couchdb/couch_httpd_show.erl
Modified: couchdb/branches/rep_security/src/couchdb/couch_httpd_show.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/rep_security/src/couchdb/couch_httpd_show.erl?rev=753441&r1=753440&r2=753441&view=diff
==============================================================================
--- couchdb/branches/rep_security/src/couchdb/couch_httpd_show.erl (original)
+++ couchdb/branches/rep_security/src/couchdb/couch_httpd_show.erl Fri Mar 13 21:51:56 2009
@@ -67,7 +67,7 @@
handle_view_list_req(#httpd{method='POST',
path_parts=[_DbName, _Design, DesignName, _List, ListName, ViewName]}=Req, Db) ->
DesignId = <<"_design/", DesignName/binary>>,
- #doc{body={Props}} = couch_httpd_db:couch_doc_open(Db, DesignId, [], []),
+ #doc{body={Props}} = couch_httpd_db:couch_doc_open(Db, DesignId, nil, []),
Lang = proplists:get_value(<<"language">>, Props, <<"javascript">>),
ListSrc = get_nested_json_value({Props}, [<<"lists">>, ListName]),
ReqBody = couch_httpd:body(Req),