We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4740fd commit 0dc6125Copy full SHA for 0dc6125
1 file changed
src/somef/process_repository.py
@@ -57,7 +57,7 @@ def rate_limit_get(*args, backoff_rate=2, initial_backoff=1, size_limit_mb=const
57
try:
58
# head_response = requests.get(url, stream=True, allow_redirects=True, **kwargs)
59
# Use a proper HEAD request to read only the response headers.
60
- # tool here: it retrieves headers without downloading the body.
+
61
head_response = requests.head(url, allow_redirects=True,
62
timeout=constants.DOWNLOAD_TIMEOUT_SECONDS, **kwargs)
63
head_response.close() # release the connection back to the pool immediately
0 commit comments