2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

Update server.js (#6637)

Specified the content type as 'text/html' for index.html.

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Shrivali Dutt
2024-11-11 20:32:49 +05:30
committed by GitHub
parent 6a63614cc1
commit 524ccdf44e
+1 -1
View File
@@ -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') {