Skip to content

Commit

Permalink
fix proxies (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
aldev12 authored Feb 21, 2025
1 parent a2db8d8 commit 3cb32c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions segment/analytics/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ def post(write_key, host=None, gzip=False, timeout=15, proxies=None, oauth_manag
kwargs = {
"data": data,
"headers": headers,
"timeout": 15,
"timeout": timeout,
}

if proxies:
kwargs['proxies'] = proxies
res = None

try:
res = _session.post(url, data=data, headers=headers, timeout=timeout)
res = _session.post(url, **kwargs)
except Exception as e:
log.error(e)
raise e
Expand Down

0 comments on commit 3cb32c9

Please sign in to comment.