couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randall Leeds (JIRA)" <>
Subject [jira] [Closed] (COUCHDB-1261) Add KML and KMZ as default mime types
Date Fri, 16 Sep 2011 00:28:10 GMT


Randall Leeds closed COUCHDB-1261.

    Resolution: Invalid

I think the proper way to handle this is by calling the function `provides()` from within
your show or list handler which allows customizing the response based on the Accept header.

for example:

function (head, req) {
  provides("application/", function() {
    send(/*some KML data*/)

> Add KML and KMZ as default mime types
> -------------------------------------
>                 Key: COUCHDB-1261
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>            Reporter: Aaron Reichman
>            Priority: Minor
> With the availability of the GeoCouch extension, I would like to see KML and KMZ added
to main.js as default mime types for CouchDB.  Alternatively, a mechanism could be provided
to allow organizations to easily add and maintain their own mime types without having to edit
main.js, which will be overwritten on future updates to CouchDB.
> The two lines that can be added to main.js are:
> registerType("kml", "application/");
> registerType("kmz", "application/");

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message