Skip to content

Commit a4144b2

Browse files
committed
Set Content-Type
1 parent 06cb7c2 commit a4144b2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ function handleRequest (req, res) {
135135
let modifier = matches[2]
136136
let action = scrud[`${req.method}${modifier}`]
137137
if (!resource || !action) return fourOhFour(res)
138+
res.setHeader('Content-Type', 'application/json')
138139
res.setHeader('SCRUD', `${resource.name}:${action}`)
139140
req.id = parseId(url)
140141
req.params = tinyParams(url)

0 commit comments

Comments
 (0)