couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From István <lecc...@gmail.com>
Subject Re: how to change the default content-type
Date Sun, 08 May 2011 22:18:50 GMT
This is why it would be good to able to configure the __default__ behavior.


On Sat, May 7, 2011 at 7:54 PM, Benoit Chesneau <bchesneau@gmail.com> wrote:

> On Sat, May 7, 2011 at 6:12 PM, István <leccine@gmail.com> wrote:
> > $ curl -D - -X GET -H "Content-Type: application/json"
> > http://couch.nohup.hu/nohup_urls/c08b5c2c03d31ee767ab891223000d72
> > HTTP/1.1 200 OK
> > Server: nginx/1.0.0
> > Date: Sat, 07 May 2011 16:11:57 GMT
> > Content-Type: text/plain;charset=utf-8
> > Connection: keep-alive
> > Vary: Accept-Encoding
> > Etag: "1-e643d169eb8593e9354012fb7a082605"
> > Content-Length: 209
> > Cache-Control: must-revalidate
> >
> > I would like the change the _default_ behavior to application/json
> >
> > I.
> >
> We are sending json not text.
>



-- 
the sun shines for all

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message