Skip to content

@send from VaticanResponse #35

@smart--petea

Description

@smart--petea

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions