couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Candler <>
Subject _temp_view insists on Content-Type
Date Thu, 02 Apr 2009 19:12:56 GMT
It seems to be inconsistent that a POST to _temp_view only works if
Content-Type: application/json is provided, whereas in every other part of
the API I've exercised so far it's not needed (example below).

I see there is explicit code enforcing this, in

Could someone explain what the reason is for this?



$ curl -X POST -d '{"map":"function(doc) { emit(null, null) }"}'
$ curl -X POST -d '{"map":"function(doc) { emit(null, null) }"}' -H "Content-Type: application/json"

View raw message