diff options
author | John Christopher Anderson <jchris@apache.org> | 2009-02-09 00:57:26 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2009-02-09 00:57:26 +0000 |
commit | 3d5351adb31fea59400179f85fb2dd97b7028ddb (patch) | |
tree | fec90683ec159379d77401d7ce7c274a81a5c83d /src | |
parent | 58e040359fa8d175b9eecec49f58e3dd00c78d1e (diff) |
allow format query param to override accept headers for _list and _show
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@742217 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_httpd_view.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/couchdb/couch_httpd_view.erl b/src/couchdb/couch_httpd_view.erl index fc3302d7..7666da98 100644 --- a/src/couchdb/couch_httpd_view.erl +++ b/src/couchdb/couch_httpd_view.erl @@ -328,6 +328,9 @@ parse_view_query(Req, Keys, IsReduce) -> Msg1 = "Bad URL query value for 'include_docs' expected \"true\" or \"false\".", throw({query_parse_error, Msg1}) end; + {"format", _} -> + % we just ignore format, so that JS can have it + Args; _ -> % unknown key Msg = lists:flatten(io_lib:format( "Bad URL query key:~s", [Key])), |