identity encoding

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@525 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2002-09-10 23:55:04 +00:00
parent 0579ba6988
commit 053c63a308

View file

@ -277,7 +277,8 @@ class HttpUrlData (UrlData):
if self.headers.gettype()[:9]!="text/html":
return 0
encoding = self.headers.get("Content-Encoding")
if encoding and encoding not in _supported_encodings:
if encoding and encoding not in _supported_encodings and \
encoding!='identity':
self.setWarning(linkcheck._('Unsupported content encoding %s.')%\
`encoding`)
return 0