couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject [24/43] couch-mrview commit: updated refs/heads/2971-count-distinct to f7c3c24
Date Wed, 01 Mar 2017 16:37:58 GMT
don't send undefined etag (COUCHDB-3134)


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

Branch: refs/heads/2971-count-distinct
Commit: a0b0392afe66ece9ef3bb4fdd5a4f159c97c47eb
Parents: ed52b77
Author: Robert Newson <rnewson@apache.org>
Authored: Wed Sep 7 14:04:23 2016 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Wed Sep 7 14:04:23 2016 +0100

----------------------------------------------------------------------
 src/couch_mrview_show.erl | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/a0b0392a/src/couch_mrview_show.erl
----------------------------------------------------------------------
diff --git a/src/couch_mrview_show.erl b/src/couch_mrview_show.erl
index 0e5217c..52e07a7 100644
--- a/src/couch_mrview_show.erl
+++ b/src/couch_mrview_show.erl
@@ -317,6 +317,8 @@ send_non_empty_chunk(#lacc{resp=Resp} = Acc, Chunk) ->
     Acc.
 
 
+apply_etag(JsonResp, undefined) ->
+    JsonResp;
 apply_etag({ExternalResponse}, CurrentEtag) ->
     % Here we embark on the delicate task of replacing or creating the
     % headers on the JsonResponse object. We need to control the Etag and


Mime
View raw message