Repository: couchdb-couch-mrview Updated Branches: refs/heads/master 2e46aba52 -> a3191964e
Handle <<"update_after">> for stale parameter Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/commit/a3191964 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/tree/a3191964 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/diff/a3191964 Branch: refs/heads/master Commit: a3191964e5d6a07171bfdbbabf5ed8c5bb327560 Parents: 2e46aba Author: Alexander Shorin <kxe...@apache.org> Authored: Thu Sep 18 13:23:51 2014 +0400 Committer: Robert Newson <rnew...@apache.org> Committed: Thu Sep 18 12:29:15 2014 +0100 ---------------------------------------------------------------------- src/couch_mrview_http.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/a3191964/src/couch_mrview_http.erl ---------------------------------------------------------------------- diff --git a/src/couch_mrview_http.erl b/src/couch_mrview_http.erl index 9155619..aeaca8e 100644 --- a/src/couch_mrview_http.erl +++ b/src/couch_mrview_http.erl @@ -381,7 +381,7 @@ parse_param(Key, Val, Args) -> throw({query_parse_error, <<"QS param `count` is not `limit`">>}); "stale" when Val == "ok" orelse Val == <<"ok">> -> Args#mrargs{stale=ok}; - "stale" when Val == "update_after" orelse Val == "update_after" -> + "stale" when Val == "update_after" orelse Val == <<"update_after">> -> Args#mrargs{stale=update_after}; "stale" -> throw({query_parse_error, <<"Invalid value for `stale`.">>});