In the snippet
VaticanResponse.prototype.send = function(txt) {
...
if( typeof resp.body == 'object') {
resp.body = JSON.stringify(resp.body);
}
...
};
the body is transformed in json. Maybe to trasform body in dependence of accept header from request?
In the snippet
the body is transformed in json. Maybe to trasform body in dependence of
acceptheader from request?