couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chewbra...@apache.org
Subject [19/41] chttpd commit: updated refs/heads/2080-port-cors to e2c2bd7
Date Tue, 02 Jun 2015 19:31:09 GMT
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 <kxepal@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/2080-port-cors
Commit: 44409269831fb15b7a9ccb913cb94995d8b0aa14
Parents: 6bfa947
Author: Will Holley <willholley@gmail.com>
Authored: Mon Feb 2 20:56:29 2015 +0000
Committer: Alexander Shorin <kxepal@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", _} ->


Mime
View raw message