mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-09 15:14:45 +00:00
Recognize PHP files as HTML files on Windows.
This commit is contained in:
parent
78ea8d5594
commit
4ee62863e5
1 changed files with 3 additions and 0 deletions
|
|
@ -183,6 +183,9 @@ def has_changed (filename):
|
|||
mimedb = mimetypes.MimeTypes(strict=False)
|
||||
# For Opera bookmark files (opera6.adr)
|
||||
mimedb.add_type('text/plain', '.adr', strict=False)
|
||||
# To recognize PHP files as HTML with content check.
|
||||
mimedb.add_type('text/plain', '.php', strict=False)
|
||||
|
||||
|
||||
# if file extension lookup was unsuccessful, look at the content
|
||||
PARSE_CONTENTS = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue