summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_httpd_misc_handlers.erl
diff options
context:
space:
mode:
authorDamien F. Katz <damien@apache.org>2008-12-22 21:11:52 +0000
committerDamien F. Katz <damien@apache.org>2008-12-22 21:11:52 +0000
commit85da5eb198a3365f5d03f290c86e091c459e7efd (patch)
treef96ad7b00043a200a942774df6b02b5c863c2f2d /src/couchdb/couch_httpd_misc_handlers.erl
parent4fc7bef5c4a44c971852f8c9251faef48779f4d1 (diff)
Fix for config api attempting list_to_binary on an atom.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@728775 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_httpd_misc_handlers.erl')
-rw-r--r--src/couchdb/couch_httpd_misc_handlers.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd_misc_handlers.erl b/src/couchdb/couch_httpd_misc_handlers.erl
index 766263ee..9651436c 100644
--- a/src/couchdb/couch_httpd_misc_handlers.erl
+++ b/src/couchdb/couch_httpd_misc_handlers.erl
@@ -139,7 +139,7 @@ handle_config_req(#httpd{method='PUT', path_parts=[_, Section, Key]}=Req) ->
ok = couch_httpd:verify_is_server_admin(Req),
Value = couch_httpd:json_body(Req),
Persist = couch_httpd:header_value(Req, "X-Couch-Persist") /= "false",
- OldValue = couch_config:get(Section, Key, null),
+ OldValue = couch_config:get(Section, Key, ""),
ok = couch_config:set(Section, Key, ?b2l(Value), Persist),
send_json(Req, 200, list_to_binary(OldValue));
% GET /_config/Section/Key