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:
+1
-1
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user