Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet committed Jul 14, 2023
1 parent bb85e38 commit da16004
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions karton_ssl_checks/karton_ssl_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def run(self, current_task: Task) -> None:
f"https://{domain}",
],
capture_output=True,
timeout=Config.REQUEST_TIMEOUT_SECONDS,
timeout=Config.Limits.REQUEST_TIMEOUT_SECONDS,
)
stderr = process_result.stderr.decode("ascii", errors="ignore")
except subprocess.TimeoutExpired as e:
Expand All @@ -94,13 +94,13 @@ def run(self, current_task: Task) -> None:
original_url,
verify=False,
stream=True,
timeout=Config.REQUEST_TIMEOUT_SECONDS,
timeout=Config.Limits.REQUEST_TIMEOUT_SECONDS,
headers=http_requests.HEADERS,
)
)
result["response_status_code"] = response.status_code
result["response_content_prefix"] = response.content.decode("utf-8", errors="ignore")[
: Config.CONTENT_PREFIX_SIZE
: Config.Miscellaneous.CONTENT_PREFIX_SIZE
]

redirect_url = response.url
Expand Down

0 comments on commit da16004

Please sign in to comment.