Skip to content

Commit

Permalink
fix: repose status code in headers
Browse files Browse the repository at this point in the history
  • Loading branch information
manekinekko committed Jun 27, 2020
1 parent 6f1d50d commit 7361bc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports.response = ({ context, status, headers, cookies, body = "" }) =>
headers,
cookies,
headers: {
status,
"Content-Type": "application/json",
...headers,
},
Expand Down

0 comments on commit 7361bc3

Please sign in to comment.