Treat PHP pages as HTML (#1797)

This commit is contained in:
Eric Bailey 2023-11-02 17:16:31 -05:00 committed by GitHub
parent 0f4bfcb05d
commit f258289be9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ export function getLikelyType(url: URL | string): LikelyType {
}
const ext = url.pathname.split('.').pop() || ''
if (ext === 'html' || ext === 'htm') {
if (ext === 'html' || ext === 'htm' || ext === 'php') {
return LikelyType.HTML
}
const mimeType = EXT_MIME_TYPES[ext]