Skip to content

Commit

Permalink
🐛 fix missing content type in responses (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgwood authored Jul 22, 2021
1 parent 1789b8b commit 045d95a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/httpServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as http from "http";
* @returns {http.ServerResponse}
*/
export function ok(res, body) {
res.writeHead(200);
res.writeHead(200, { "Content-Type": "application/json" });
res.write(JSON.stringify(body));
res.end();
return res;
Expand Down

0 comments on commit 045d95a

Please sign in to comment.