From fecb3ea7c2c3be36ab4eb49a8b997e08d06412cb Mon Sep 17 00:00:00 2001 From: bitscuit Date: Sun, 9 May 2021 08:38:10 +0200 Subject: [PATCH] Closed stream request after reading Content-Length --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 0741567..892894d 100644 --- a/main.py +++ b/main.py @@ -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: