mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +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') {
|
if (pathname === '/index.html') {
|
||||||
pipeFileToResponse(res, './client.html');
|
pipeFileToResponse(res, './client.html', 'text/html');
|
||||||
} else if (pathname === '/axios.js') {
|
} else if (pathname === '/axios.js') {
|
||||||
pipeFileToResponse(res, '../dist/axios.js', 'text/javascript');
|
pipeFileToResponse(res, '../dist/axios.js', 'text/javascript');
|
||||||
} else if (pathname === '/axios.js.map') {
|
} else if (pathname === '/axios.js.map') {
|
||||||
|
|||||||
Reference in New Issue
Block a user