summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/couchdb/couch_db_update_notifier.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_db_update_notifier.erl b/src/couchdb/couch_db_update_notifier.erl
index 449da356..f2f0342c 100644
--- a/src/couchdb/couch_db_update_notifier.erl
+++ b/src/couchdb/couch_db_update_notifier.erl
@@ -52,7 +52,7 @@ handle_event(Event, {Fun, FunAcc}) ->
FunAcc2 = Fun(Event, FunAcc),
{ok, {Fun, FunAcc2}};
handle_event({EventAtom, DbName}, Port) ->
- Obj = {[{type, atom_to_list(EventAtom)}, {db, DbName}]},
+ Obj = {[{type, list_to_binary(atom_to_list(EventAtom))}, {db, DbName}]},
true = port_command(Port, ?JSON_ENCODE(Obj) ++ "\n"),
{ok, Port}.