mirror of
https://github.com/sissbruecker/linkding
synced 2024-11-10 06:04:15 +00:00
Fix website loader test
This commit is contained in:
parent
4f9170c48d
commit
43d52642a6
1 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,8 @@ def load_page(url: str):
|
|||
if size > MAX_CONTENT_LIMIT:
|
||||
logger.debug(f'Cancel reading document after {size} bytes')
|
||||
break
|
||||
logger.debug(f'Request consumed: {r._content_consumed}')
|
||||
if hasattr(r, '_content_consumed'):
|
||||
logger.debug(f'Request consumed: {r._content_consumed}')
|
||||
|
||||
# Use charset_normalizer to determine encoding that best matches the response content
|
||||
# Several sites seem to specify the response encoding incorrectly, so we ignore it and use custom logic instead
|
||||
|
|
Loading…
Reference in a new issue