This is only true if you don't set the correct accept header: curl -v -H "Accept: application/json" http://localhost:5984/test/_design/foo/_view/bar > GET /test/_design/foo/_view/bar HTTP/1.1 > User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 > OpenSSL/0.9.8l zlib/1.2.3 > Host: localhost:5984 > Accept: application/json > < HTTP/1.1 200 OK < Transfer-Encoding: chunked < Server: CouchDB/1.0.0 (Erlang OTP/R13B) < Etag: "D2TAVA3VM8AN5VR54PD3HDDM5" < Date: Thu, 12 Aug 2010 07:28:02 GMT < Content-Type: application/json < Cache-Control: must-revalidate < ....
On 12.08.2010, at 09:21, Aurélien Bénel wrote: > Hi Whimsica, > >> If I give instead give it the couchdb view link which returns the exact same >> thing -- it does not work at all. > > > I just noticed (on CouchDB 1.0.0) that views return "Content-Type: > text/plain;charset=utf-8"... even when "Content-Type: application/json" was > in the GET request. > > Couldn't it be the reason why extjs is confused? > > > Regards, > > Aurélien
