This is an automated email from the ASF dual-hosted git repository.

iilyak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/main by this push:
     new 9043204  Fix typo causing not saving of configuration changes from 
chttpd_node
     new eeec561  Merge pull request #3440 from cloudant/fix-typo
9043204 is described below

commit 9043204735eed13128159208608823b35bf481b4
Author: ILYA Khlopotov <[email protected]>
AuthorDate: Thu Mar 18 08:42:10 2021 -0700

    Fix typo causing not saving of configuration changes from chttpd_node
---
 src/chttpd/src/chttpd_node.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/chttpd/src/chttpd_node.erl b/src/chttpd/src/chttpd_node.erl
index 0159672..f657384 100644
--- a/src/chttpd/src/chttpd_node.erl
+++ b/src/chttpd/src/chttpd_node.erl
@@ -72,7 +72,7 @@ handle_node_req(#httpd{method='PUT', path_parts=[_, Node, 
<<"_config">>, Section
     Persist = chttpd:header_value(Req, "X-Couch-Persist") /= "false",
     OldValue = call_node(Node, config, get, [Section, Key, ""]),
     IsSensitive = Section == <<"admins">>,
-    Opts = #{persisit => Persist, sensitive => IsSensitive},
+    Opts = #{persist => Persist, sensitive => IsSensitive},
     case call_node(Node, config, set, [Section, Key, ?b2l(Value), Opts]) of
         ok ->
             send_json(Req, 200, list_to_binary(OldValue));

Reply via email to