Skip to content

Instantly share code, notes, and snippets.

@rnewson
Created February 19, 2013 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rnewson/4988492 to your computer and use it in GitHub Desktop.
Save rnewson/4988492 to your computer and use it in GitHub Desktop.
diff --git a/src/couchdb/couch_httpd_db.erl b/src/couchdb/couch_httpd_db.erl
index 4b345da..5d5db07 100644
--- a/src/couchdb/couch_httpd_db.erl
+++ b/src/couchdb/couch_httpd_db.erl
@@ -1073,6 +1073,9 @@ parse_doc_query(Req) ->
{"meta", "true"} ->
Options = [revs_info, conflicts, deleted_conflicts | Args#doc_query_args.options],
Args#doc_query_args{options=Options};
+ {"deleted", "true"} ->
+ Options = [deleted | Args#doc_query_args.options],
+ Args#doc_query_args{options=Options};
{"revs", "true"} ->
Options = [revs | Args#doc_query_args.options],
Args#doc_query_args{options=Options};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment