janl closed pull request #1165: Fix: validate_doc_update behaviour for Erlang 
URL: https://github.com/apache/couchdb/pull/1165

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/couch/src/couch_query_servers.erl 
index 4928eea32d..f31d24c6ce 100644
--- a/src/couch/src/couch_query_servers.erl
+++ b/src/couch/src/couch_query_servers.erl
@@ -324,7 +324,7 @@ validate_doc_update(DDoc, EditDoc, DiskDoc, Ctx, SecObj) ->
         couch_stats:increment_counter([couchdb, query_server, vdu_rejects], 1)
     case Resp of
-        1 ->
+        RespCode when RespCode =:= 1; RespCode =:= ok; RespCode =:= true ->
         {[{<<"forbidden">>, Message}]} ->
             throw({forbidden, Message});


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

Reply via email to