connect-acceptoverride

0.0.3 • Public • Published

Will change the request's Accept header to application/json if the URL ends with .json, or to application/xml if the URL ends with .xml.

Install

npm install connect-acceptoverride

Usage

var acceptOverride = require('connect-acceptoverride');
app.use(acceptOverride());

/connect-acceptoverride/

    Package Sidebar

    Install

    npm i connect-acceptoverride

    Weekly Downloads

    8

    Version

    0.0.3

    License

    BSD

    Last publish

    Collaborators

    • olalonde