Permalink
Browse files

make sure default headers are defaults

  • Loading branch information...
benoitc committed May 16, 2012
1 parent 224195e commit 3f0b8dd4f842287fd501079b26644123b7b7b9e4
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/couch_changes/src/couch_httpd_changes.erl
@@ -101,7 +101,7 @@ do_changes_req(_Db, Req, #changes_args{feed="eventsource"}, ChangesFun,
{"Content-Type", "text/event-stream"},
{"Cache-Control", "no-cache"}
],
- {ok, Resp} = couch_httpd:start_json_response(Req, 200, Headers),
+ {ok, Resp} = couch_httpd:start_chunked_response(Req, 200, Headers),
ChangesFun(MakeCallback(Resp));
do_changes_req(_Db, Req, _ChangesArgs, ChangesFun, MakeCallback) ->
% "longpoll" or "continuous"

0 comments on commit 3f0b8dd

Please sign in to comment.