mirror of
https://github.com/DeNNiiInc/Website-Stress-Test.git
synced 2026-04-17 12:36:00 +00:00
Fix: correctly serve .html files as text/html in proxy server
This commit is contained in:
@@ -138,6 +138,7 @@ if (cluster.isMaster) {
|
||||
const extname = path.extname(filePath).toLowerCase();
|
||||
let contentType = 'text/html';
|
||||
const mimeTypes = {
|
||||
'.html': 'text/html',
|
||||
'.js': 'text/javascript',
|
||||
'.css': 'text/css',
|
||||
'.png': 'image/png',
|
||||
|
||||
Reference in New Issue
Block a user