From 85da5eb198a3365f5d03f290c86e091c459e7efd Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Mon, 22 Dec 2008 21:11:52 +0000 Subject: 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 --- src/couchdb/couch_httpd_misc_handlers.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/couchdb/couch_httpd_misc_handlers.erl') 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 -- cgit v1.2.3