Skip to content

Commit

Permalink
Update server.js (axios#6637)
Browse files Browse the repository at this point in the history
Specified the content type as 'text/html' for index.html.

Co-authored-by: Jay <[email protected]>
  • Loading branch information
shrivalidutt and jasonsaayman authored Nov 11, 2024
1 parent 6a63614 commit 524ccdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandbox/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ server = http.createServer(function (req, res) {
}

if (pathname === '/index.html') {
pipeFileToResponse(res, './client.html');
pipeFileToResponse(res, './client.html', 'text/html');
} else if (pathname === '/axios.js') {
pipeFileToResponse(res, '../dist/axios.js', 'text/javascript');
} else if (pathname === '/axios.js.map') {
Expand Down

0 comments on commit 524ccdf

Please sign in to comment.