Skip to content
Snippets Groups Projects
Commit ec1a9574 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Honor verify_cert setting also for GET requests

parent 851fa099
Branches
No related tags found
No related merge requests found
...@@ -370,7 +370,7 @@ def update_id_patterns(config, logger) -> 'Config': ...@@ -370,7 +370,7 @@ def update_id_patterns(config, logger) -> 'Config':
# Send request # Send request
try: try:
r = requests.get(url, timeout=config["server"]["timeout"]) r = requests.get(url, timeout=config["server"]["timeout"], verify=config["server"]["verify_cert"])
except requests.packages.urllib3.exceptions.MaxRetryError as e: except requests.packages.urllib3.exceptions.MaxRetryError as e:
logger.error(f"Couldn't reach server at \"{url}\" (Timeout, using existing patterns instead): {e}") logger.error(f"Couldn't reach server at \"{url}\" (Timeout, using existing patterns instead): {e}")
return config return config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment