Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 309 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 309 Bytes

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());