Skip to content

Commit

Permalink
Add missing content-type header
Browse files Browse the repository at this point in the history
  • Loading branch information
epandurski committed Mar 9, 2023
1 parent 2168829 commit 12cd403
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ proxy.on('proxyRes', (proxyRes, req, res) => {
data.items = []
data.next = invalidPath
}
res.writeHead(200, {'Content-Type': 'application/json'})
res.end(JSON.stringify(data))
} else {
res.end(body)
Expand Down

0 comments on commit 12cd403

Please sign in to comment.