Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.10
-
None
-
{"couchdb":"Welcome","version":"0.10.0a796218"}
Linux
-
Regular Contributors Level (Easy to Medium)
Description
After calling getRow() once, the response header are locked and cannot be changed by respondWith.
getRow() should be side-effect free and Sending shouldn't start before calling send();
Example, where respondWith() cannot set "Content-Type" response header according to "Accept" request header:
function(head, req){
var row = getRow();
respondWith(req,
{
json : function() {
send("
");
},
xml : function()
});
}
Attachments
Attachments
Issue Links
- is duplicated by
-
COUCHDB-764 first call to getRow() in list function forces headers
- Closed
-
COUCHDB-1299 Request to support sending list result content-type after getRow was invoked
- Closed