You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2011/10/26 14:08:48 UTC

[Couchdb Wiki] Update of "Formatting_with_Show_and_List" by Andrey

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");