Treat PHP pages as HTML (#1797)
parent
0f4bfcb05d
commit
f258289be9
|
@ -92,7 +92,7 @@ export function getLikelyType(url: URL | string): LikelyType {
|
||||||
}
|
}
|
||||||
|
|
||||||
const ext = url.pathname.split('.').pop() || ''
|
const ext = url.pathname.split('.').pop() || ''
|
||||||
if (ext === 'html' || ext === 'htm') {
|
if (ext === 'html' || ext === 'htm' || ext === 'php') {
|
||||||
return LikelyType.HTML
|
return LikelyType.HTML
|
||||||
}
|
}
|
||||||
const mimeType = EXT_MIME_TYPES[ext]
|
const mimeType = EXT_MIME_TYPES[ext]
|
||||||
|
|
Loading…
Reference in New Issue