couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "Formatting_with_Show_and_List" by Andrey
Date Wed, 26 Oct 2011 12:08:48 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Formatting_with_Show_and_List" page has been changed by Andrey:
http://wiki.apache.org/couchdb/Formatting_with_Show_and_List?action=diff&rev1=27&rev2=28

Comment:
Change location for main.js

  }
  }}}
  === Responding to different Content-Type Request Headers ===
- The second way to deal with content-type headers is to rely on some global helper methods
defined by CouchDB's ''<couchdb>/server/main.js'' file. The ''registerType'' method
lets you register a type key with one or more content-type strings. Please refer to the ''main.js''
file to see content-types registered by default.
+ The second way to deal with content-type headers is to rely on some global helper methods
defined by CouchDB's ''<couchdb_install>/share/couchdb/server/main.js'' file. The ''registerType''
method lets you register a type key with one or more content-type strings. Please refer to
the ''main.js'' file to see content-types registered by default.
  
  {{{#!highlight javascript
  registerType("foo", "application/foo", "application/x-foo");

Mime
View raw message