summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2009-04-29 14:07:09 +0000
committerAdam Kocoloski <kocolosk@apache.org>2009-04-29 14:07:09 +0000
commiteff7e5f18f78a52afd9107c15252876e0291b783 (patch)
treef3358b7a160b59caad0be2de22c674fff7955037 /src/couchdb
parentea8e714c55695d605a23a75f2679b5bd34cd0f0c (diff)
Closes COUCHDB-320 (ignore Content-Type in _temp_view). Thanks B. Candler
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@769792 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_httpd_view.erl5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/couchdb/couch_httpd_view.erl b/src/couchdb/couch_httpd_view.erl
index 7907f68f..9b1f3617 100644
--- a/src/couchdb/couch_httpd_view.erl
+++ b/src/couchdb/couch_httpd_view.erl
@@ -78,11 +78,6 @@ handle_view_req(Req, _Db) ->
handle_temp_view_req(#httpd{method='POST'}=Req, Db) ->
couch_stats_collector:increment({httpd, temporary_view_reads}),
- case couch_httpd:primary_header_value(Req, "content-type") of
- undefined -> ok;
- "application/json" -> ok;
- Else -> throw({incorrect_mime_type, Else})
- end,
{Props} = couch_httpd:json_body(Req),
Language = proplists:get_value(<<"language">>, Props, <<"javascript">>),
{DesignOptions} = proplists:get_value(<<"options">>, Props, {[]}),