Skip to content

Commit

Permalink
Bring back json-specific content-type
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoBernardino committed Sep 21, 2022
1 parent 3aea5bc commit a3f4047
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ const routes: Routes = {
headers['content-type'] = 'text/javascript';
} else if (fileExtension === 'css') {
headers['content-type'] = 'text/css';
} else if (fileExtension === 'json') {
headers['content-type'] = 'application/json';
} else if (fileExtension === 'jpg') {
headers['content-type'] = 'image/jpeg';
return serveFile(request, fullFilePath);
Expand Down

0 comments on commit a3f4047

Please sign in to comment.