Closed stream request after reading Content-Length

This commit is contained in:
bitscuit 2021-05-09 08:38:10 +02:00
parent 79c5157e05
commit fecb3ea7c2
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ while not urls.empty():
log.info("Fetching '%s'..."%url)
try:
r = session.get(url, stream=True, timeout=5)
r.close()
# Read response
if r.status_code != 200: