in source/custom-resource/index.ts [143:161]
function getContentType(filename: string): string {
let contentType = '';
if (filename.endsWith('.html')) {
contentType = 'text/html';
} else if (filename.endsWith('.css')) {
contentType = 'text/css';
} else if (filename.endsWith('.png')) {
contentType = 'image/png';
} else if (filename.endsWith('.svg')) {
contentType = 'image/svg+xml';
} else if (filename.endsWith('.jpg')) {
contentType = 'image/jpeg';
} else if (filename.endsWith('.js')) {
contentType = 'application/javascript';
} else {
contentType = 'binary/octet-stream';
}
return contentType;
}