Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fix heartbeat=true for db_updates feeds
This commit fixes some bad case clause ordering. It'd match 'true' to a
variable when the variable should only either be false or a number.

BugzID: 24170
  • Loading branch information
sagelywizard authored and rnewson committed Aug 7, 2014
1 parent f429cd0 commit 02256491292a18f46d86fac06168ba18c89f13b4
Showing 1 changed file with 1 addition and 1 deletion.
@@ -21,8 +21,8 @@ handle_global_changes_req(#httpd{method='GET'}=Req) ->
Feed = couch_httpd:qs_value(Req, "feed", "normal"),
Options = parse_global_changes_query(Req),
Heartbeat = case lists:keyfind(heartbeat, 1, Options) of
{heartbeat, Other} -> Other;
{heartbeat, true} -> 60000;
{heartbeat, Other} -> Other;
false -> false
end,
chttpd:verify_is_server_admin(Req),

0 comments on commit 0225649

Please sign in to comment.