diff options
author | Damien F. Katz <damien@apache.org> | 2008-05-19 19:20:19 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2008-05-19 19:20:19 +0000 |
commit | 55ee8c7f9188443900c52a69ae408bcf457be62a (patch) | |
tree | e98a332b9b43208f4d7494ac357c51df81866b29 /src/couchdb/couch_view.erl | |
parent | 4e47fa72aedc6533bd669599e325c911b2c8c68e (diff) |
Changed temp view definition to always be jsonobjects with map/reduce source as members of the object. Everywhere we used 'text/javascript' or 'application/javascript', we now just use 'javascript'
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@657926 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_view.erl')
-rw-r--r-- | src/couchdb/couch_view.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_view.erl b/src/couchdb/couch_view.erl index 5a1ff2e4..4f6a2f47 100644 --- a/src/couchdb/couch_view.erl +++ b/src/couchdb/couch_view.erl @@ -153,7 +153,7 @@ reduce_to_count(Reductions) -> design_doc_to_view_group(#doc{id=Id,body={obj, Fields}}) -> - Language = proplists:get_value("language", Fields, "text/javascript"), + Language = proplists:get_value("language", Fields, "javascript"), {obj, RawViews} = proplists:get_value("views", Fields, {obj, []}), % extract the map/reduce views from the json fields and into lists |