Skip to content

Commit

Permalink
refactor: ♻️ set http response header
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinxin90 committed Feb 19, 2021
1 parent a3fd004 commit 2535367
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/performance.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class RoutePerformance {
// res.sendFile(file_path)
// }
} catch (err) {
res.setHeader('Content-Type', 'application/json');
res.status(404);
res.end(JSON.stringify({ "error": err.toString() }));
}
Expand Down

0 comments on commit 2535367

Please sign in to comment.