Skip to content

Commit 524ccdf

Browse files
Update server.js (axios#6637)
Specified the content type as 'text/html' for index.html. Co-authored-by: Jay <jasonsaayman@gmail.com>
1 parent 6a63614 commit 524ccdf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sandbox/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ server = http.createServer(function (req, res) {
2727
}
2828

2929
if (pathname === '/index.html') {
30-
pipeFileToResponse(res, './client.html');
30+
pipeFileToResponse(res, './client.html', 'text/html');
3131
} else if (pathname === '/axios.js') {
3232
pipeFileToResponse(res, '../dist/axios.js', 'text/javascript');
3333
} else if (pathname === '/axios.js.map') {

0 commit comments

Comments
 (0)