Skip to content

Commit 1aae900

Browse files
committed
fix: removed verify as false condition
1 parent 6ffb238 commit 1aae900

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/springernature_api_client/api_client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,14 @@ def _make_request(self, endpoint: str, fetch_all: bool = False, is_tdm: bool = F
2828

2929
retries = 0 # Track retry attempts
3030

31-
# Disable SSL verification for TDM requests only
32-
ssl_verify = not is_tdm # False for TDM, True for others
33-
3431
# Disable SSL warnings only for TDM requests to avoid masking issues in other API calls
3532
if is_tdm:
3633
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
3734

3835
while True:
3936
try:
4037
logger.info(f"Making request to: {url} with params: {params}")
41-
response = requests.get(url, params=params, timeout=10, verify=ssl_verify)
38+
response = requests.get(url, params=params, timeout=10)
4239

4340
if response.status_code == 429:
4441
if retries >= self.max_retries:

0 commit comments

Comments
 (0)