On Jul 3, 2010, at 7:45 AM, Paulo Edgar Castro wrote: > Hi there. > > Is there a reason why I'm being returned a text/plain content type rather > then a json one? > I don't think I messed up with any of the server config files. > Judging by the HTTP_database_API docs on the wiki shouldn't this be returning > a JSON content-type? > I'm having the same content-type response when requesting individual docs.... >
We set content type to text/plain by default b/c otherwise browsers will automatically download the json file instead of displaying it. this is just a convenience and can be overridden using an Accept header with application/json in it. > Cheers, > > > PECastro > > > [r...@f11-0 test]# telnet localhost 5984 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > GET /_all_dbs HTTP/1.1 > > HTTP/1.1 200 OK > Server: CouchDB/0.10.0 (Erlang OTP/R12B) > Date: Sat, 03 Jul 2010 14:37:53 GMT > Content-Type: text/plain;charset=utf-8 > Content-Length: 79 > Cache-Control: must-revalidate > > ["my_test_2","my_test2"] > > ^C > Connection closed by foreign host. > > > > >
