couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Sosinski <em...@robertsosinski.com>
Subject Setting ContentType For List Functions
Date Wed, 03 Nov 2010 03:22:38 GMT
I have the following list function:

function(head, req) {
  send("<ul>");

  while(row = getRow()) {
    send("<li>"+row.value.name+"</li>");
  }

  send("</ul>");
}

This function works except that it is being sent back with a ContentType of
"application/json".  Is there any way to change the content type to
"text/html", similar to show functions?

Thanks,

-Robert

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message