Skip to content

Commit 7b1285f

Browse files
authored
Increase chunk_size to 1MiB (#87)
Should increase download speeds.
1 parent f37edbb commit 7b1285f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

htmlproofer/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def resolve_web_scheme(self, url: str) -> int:
152152

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

158158
return response.status_code

0 commit comments

Comments
 (0)