mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
@@ -234,7 +234,7 @@ class SimpleServer {
|
||||
response.end(`File not found: ${filePath}`);
|
||||
return;
|
||||
}
|
||||
response.setHeader('Content-Type', mime.lookup(filePath));
|
||||
response.setHeader('Content-Type', mime.getType(filePath));
|
||||
response.end(data);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user