couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: attachments "Content-Type" seems to be based on file extension.
Date Sat, 05 Sep 2009 15:02:19 GMT
> Is there a way to ensure (force) the "Content-type" given by couchdb?

This is only related to whatever tool you're using. With curl the
proper call would be something like:

$ curl -X PUT -H "Content-Type: text/plain"
http://127.0.0.1:5984/db_name/docid/test.txt

If you're using a library of some sort you'll need to read their API.

HTH,
Paul Davis

Mime
View raw message