You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2016/09/07 13:04:42 UTC

couch-mrview commit: updated refs/heads/master to a0b0392

Repository: couchdb-couch-mrview
Updated Branches:
  refs/heads/master ed52b77cd -> a0b0392af


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/master
Commit: a0b0392afe66ece9ef3bb4fdd5a4f159c97c47eb
Parents: ed52b77
Author: Robert Newson <rn...@apache.org>
Authored: Wed Sep 7 14:04:23 2016 +0100
Committer: Robert Newson <rn...@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