Minor update

This commit is contained in:
Miroslav Stampar
2026-01-04 20:36:46 +01:00
parent 760fac59d8
commit 9e436efbc5
3 changed files with 5 additions and 5 deletions

View File

@@ -281,8 +281,8 @@ def decodePage(page, contentEncoding, contentType, percentDecode=True):
if not page or (conf.nullConnection and len(page) < 2):
return getUnicode(page)
contentEncoding = contentEncoding.lower() if hasattr(contentEncoding, "lower") else ""
contentType = contentType.lower() if hasattr(contentType, "lower") else ""
contentEncoding = getText(contentEncoding).lower() if contentEncoding else ""
contentType = getText(contentType).lower() if contentType else ""
if contentEncoding in ("gzip", "x-gzip", "deflate"):
if not kb.pageCompress: