mirror of https://github.com/opensumi/core
fix: normalize content type by converting file extension to lowercase (#4375)
This commit is contained in:
parent
8bc2a5362e
commit
7d522955ff
|
@ -32,7 +32,7 @@ export class ExpressFileServerContribution implements ServerAppContribution {
|
|||
|
||||
const filePath = URI.parse(`file://${uriPath}`).codeUri.fsPath;
|
||||
const whitelist = this.getWhiteList();
|
||||
const contentType = ALLOW_MIME[path.extname(filePath).slice(1)];
|
||||
const contentType = ALLOW_MIME[path.extname(filePath).slice(1).toLowerCase()];
|
||||
if (
|
||||
/**
|
||||
* 地址在白名单内
|
||||
|
|
Loading…
Reference in New Issue