summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriilyak <iilyak@users.noreply.github.com>2021-03-18 08:46:55 -0700
committerGitHub <noreply@github.com>2021-03-18 08:46:55 -0700
commiteeec561abc42dd358c4d473282e3442c1519089f (patch)
treefbb95ae588b645e5f330b7a79941790c2abd4ec1
parenta411fe220f94be73b9364fc0e923b8401d4e73ff (diff)
parent9043204735eed13128159208608823b35bf481b4 (diff)
downloadcouchdb-eeec561abc42dd358c4d473282e3442c1519089f.tar.gz
Merge pull request #3440 from cloudant/fix-typo
Fix typo causing not saving of configuration changes from chttpd_node
-rw-r--r--src/chttpd/src/chttpd_node.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chttpd/src/chttpd_node.erl b/src/chttpd/src/chttpd_node.erl
index 0159672f5..f657384ad 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));