Skip to content

Commit

Permalink
Increase chunk_size to 1MiB (#87)
Browse files Browse the repository at this point in the history
Should increase download speeds.
  • Loading branch information
benjamb authored Jun 12, 2024
1 parent f37edbb commit 7b1285f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htmlproofer/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def resolve_web_scheme(self, url: str) -> int:

if self.config['skip_downloads'] is False:
# Download the entire contents as to not break previous behaviour.
for _ in response.iter_content(chunk_size=1024):
for _ in response.iter_content(chunk_size=1024 * 1024):
pass

return response.status_code
Expand Down

0 comments on commit 7b1285f

Please sign in to comment.