mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-24 06:03:43 +00:00
Really allow parsing of XHTML files; I forgot some places to adjust the MIME checking.
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3818 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
a6deeeb8a5
commit
caf8ba6297
2 changed files with 2 additions and 1 deletions
|
|
@ -139,6 +139,7 @@ PARSE_EXTENSIONS = {
|
|||
|
||||
PARSE_MIMETYPES = (
|
||||
"text/html",
|
||||
"application/xhtml+xml",
|
||||
"text/css",
|
||||
"application/x-shockwave-flash",
|
||||
)
|
||||
|
|
|
|||
|
|
@ -606,7 +606,7 @@ Use URL %(newurl)s instead for checking.""") % {
|
|||
"""
|
||||
if not (self.valid and self.headers):
|
||||
return False
|
||||
if headers.get_content_type(self.headers) != "text/html":
|
||||
if headers.get_content_type(self.headers) not in ("text/html", "application/xhtml+xml"):
|
||||
return False
|
||||
return self.encoding_supported()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue