Skip to content
This repository was archived by the owner on Jan 9, 2018. It is now read-only.
This repository was archived by the owner on Jan 9, 2018. It is now read-only.

Bring up-to-date with Express 4.x #22

Description

@edu2004eu

This package doesn't fully work with express 4.x (haven't tested other versions). More specifically, the sending of headers and status is not working, and deprecated respectively.

Fixing this is fairly easy:

Replace this.header('Content-Type', 'text/csv'); with this.set('Content-Type', 'text/csv');
and return this.send(body, headers, status); with:

this.set(headers);
return this.status(status).send(body);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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