We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d43850a + fae0287 commit 6f974efCopy full SHA for 6f974ef
1 file changed
tika/tika.py
@@ -770,12 +770,10 @@ def _urlretrieve(
770
)
771
response.raise_for_status()
772
773
- bytes_downloaded = 0
774
with open(filename, "wb") as f:
775
for chunk in response.iter_content(chunk_size=chunk_size):
776
if chunk: # Filter out keep-alive chunks
777
f.write(chunk)
778
- bytes_downloaded += len(chunk)
779
780
return filename
781
0 commit comments