summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2010-11-17 10:33:07 +0000
committerJan Lehnardt <jan@apache.org>2010-11-17 10:33:07 +0000
commitf5fc8fbc57bb99d59b5c0f15d1108e89946cf0e4 (patch)
tree21daa2bd151484c35d3119871c32de12167b3493
parent5afece2131f4ef4000d768b671bddbbf714303d9 (diff)
Add stale to parse_view_param/2 for consistency.
Principle of least surprise. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1035971 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/couchdb/couch_httpd_view.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/couchdb/couch_httpd_view.erl b/src/couchdb/couch_httpd_view.erl
index 36e44da5..0a8c72f3 100644
--- a/src/couchdb/couch_httpd_view.erl
+++ b/src/couchdb/couch_httpd_view.erl
@@ -358,6 +358,8 @@ validate_view_query(limit, Value, Args) ->
Args#view_query_args{limit=Value};
validate_view_query(list, Value, Args) ->
Args#view_query_args{list=Value};
+validate_view_query(stale, ok, Args) ->
+ Args#view_query_args{stale=ok};
validate_view_query(stale, _, Args) ->
Args;
validate_view_query(descending, true, Args) ->