incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Candler <B.Cand...@pobox.com>
Subject Re: Default response is text/plain
Date Tue, 03 Feb 2009 14:05:14 GMT
On Mon, Feb 02, 2009 at 01:24:54PM -0500, Avi Flax wrote:
> I think the default content-type should be application/json; that'd be
> more correct. The only time text/plain should be returned is when it's
> specifically asked for. And as a workaround for browsers, we could
> have text/plain be returned if the Accept header contains '*'.

How about this patch?

(Note: I am just an erlang dabbler; there's probably a way to write this
with less duplication)

Regards,

Brian.

Mime
View raw message