couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r728775 - /couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl
Date Mon, 22 Dec 2008 21:11:53 GMT
Author: damien
Date: Mon Dec 22 13:11:52 2008
New Revision: 728775

URL: http://svn.apache.org/viewvc?rev=728775&view=rev
Log:
Fix for config api attempting list_to_binary on an atom.

Modified:
    couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl

Modified: couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl?rev=728775&r1=728774&r2=728775&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl Mon Dec 22 13:11:52 2008
@@ -139,7 +139,7 @@
     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



Mime
View raw message