Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix list_views with nil rev not []

git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/rep_security@753441 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit 263556a236c61c541a1eb07c1038b0acb9dd2f1d 1 parent 258b343
@jchris jchris authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/couchdb/couch_httpd_show.erl
View
2  src/couchdb/couch_httpd_show.erl
@@ -67,7 +67,7 @@ handle_view_list_req(#httpd{method='GET'}=Req, _Db) ->
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),
Please sign in to comment.
Something went wrong with that request. Please try again.