summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_httpd_db.erl
diff options
context:
space:
mode:
authorDamien F. Katz <damien@apache.org>2009-06-01 00:27:28 +0000
committerDamien F. Katz <damien@apache.org>2009-06-01 00:27:28 +0000
commitce663765f3f774d07c58579dff8b5398fdfbb6ce (patch)
tree5be1ca81998af7fb87402b5857a016cee84316f0 /src/couchdb/couch_httpd_db.erl
parent958c8a6c8c0aa03d854a1aef4ad06e0ae6583375 (diff)
Added tests for heartbeat and timeout options in the _changes api.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780539 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_httpd_db.erl')
-rw-r--r--src/couchdb/couch_httpd_db.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd_db.erl b/src/couchdb/couch_httpd_db.erl
index 404757af..65f40472 100644
--- a/src/couchdb/couch_httpd_db.erl
+++ b/src/couchdb/couch_httpd_db.erl
@@ -119,7 +119,8 @@ keep_sending_changes(#httpd{user_ctx=UserCtx,path_parts=[DbName|_]}=Req, Resp, D
{ok, Db2} = couch_db:open(DbName, [{user_ctx, UserCtx}]),
keep_sending_changes(Req, Resp, Db2, EndSeq, Prepend2, Timeout, TimeoutFun);
stop ->
- send_chunk(Resp, io_lib:format("\n],\n\"last_seq\":~w}\n", [EndSeq]))
+ send_chunk(Resp, io_lib:format("\n],\n\"last_seq\":~w}\n", [EndSeq])),
+ send_chunk(Resp, "")
end.
send_changes(Req, Resp, Db, StartSeq, Prepend0) ->