Treat PHP pages as HTML (#1797)

zio/stable
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
1 changed files with 1 additions and 1 deletions

View File

@ -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]