mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-23 08:09:48 -05:00
fix: syntax bug on HEADER_REQUEST_TIMEOUT
This commit is contained in:
parent
c5844dfdd6
commit
3afc63242b
@ -335,7 +335,7 @@ class BrozzlerWorker:
|
|||||||
# see https://docs.python-requests.org/en/latest/user/advanced/#body-content-workflow
|
# see https://docs.python-requests.org/en/latest/user/advanced/#body-content-workflow
|
||||||
try:
|
try:
|
||||||
with requests.get(
|
with requests.get(
|
||||||
page.url, stream=True, verify=False, timeout=HEADER_REQUEST_TIMEOUT
|
page.url, stream=True, verify=False, timeout=self.HEADER_REQUEST_TIMEOUT
|
||||||
) as r:
|
) as r:
|
||||||
return r.headers
|
return r.headers
|
||||||
except requests.exceptions.Timeout as e:
|
except requests.exceptions.Timeout as e:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user