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:
calvin 2008-06-16 13:03:48 +00:00
parent a6deeeb8a5
commit caf8ba6297
2 changed files with 2 additions and 1 deletions

View file

@ -139,6 +139,7 @@ PARSE_EXTENSIONS = {
PARSE_MIMETYPES = (
"text/html",
"application/xhtml+xml",
"text/css",
"application/x-shockwave-flash",
)

View file

@ -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()