Skip to content

Commit

Permalink
Treat PHP pages as HTML (#1797)
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey authored Nov 2, 2023
1 parent 0f4bfcb commit f258289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/link-meta/link-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit f258289

Please sign in to comment.