You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/02/03 17:11:26 UTC

chttpd commit: updated refs/heads/master to 4440926

Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master 6bfa947ff -> 444092698


Parse attachment-related parameters for /_changes

Match the way that couch_httpd_db:parse_changes_query handles attachment
related query parameters.

This closes #23

COUCHDB-2522

Signed-off-by: Alexander Shorin <kx...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/44409269
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/44409269
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/44409269

Branch: refs/heads/master
Commit: 44409269831fb15b7a9ccb913cb94995d8b0aa14
Parents: 6bfa947
Author: Will Holley <wi...@gmail.com>
Authored: Mon Feb 2 20:56:29 2015 +0000
Committer: Alexander Shorin <kx...@apache.org>
Committed: Tue Feb 3 19:10:56 2015 +0300

----------------------------------------------------------------------
 src/chttpd_db.erl | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/44409269/src/chttpd_db.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_db.erl b/src/chttpd_db.erl
index 1d749cb..174a49e 100644
--- a/src/chttpd_db.erl
+++ b/src/chttpd_db.erl
@@ -1336,6 +1336,12 @@ parse_changes_query(Req) ->
             Args#changes_args{include_docs=true};
         {"conflicts", "true"} ->
             Args#changes_args{conflicts=true};
+        {"attachments", "true"} ->
+            Options = [attachments | Args#changes_args.doc_options],
+            Args#changes_args{doc_options=Options};
+        {"att_encoding_info", "true"} ->
+            Options = [att_encoding_info | Args#changes_args.doc_options],
+            Args#changes_args{doc_options=Options};
         {"filter", _} ->
             Args#changes_args{filter=Value};
         {"seq_interval", _} ->