diff --git a/linkcheck/HttpUrlData.py b/linkcheck/HttpUrlData.py index dd8ef2f6..b7709e0e 100644 --- a/linkcheck/HttpUrlData.py +++ b/linkcheck/HttpUrlData.py @@ -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