Skip to content

Commit

Permalink
fix proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
aldev12 committed Sep 30, 2024
1 parent e045297 commit 5ce9152
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 5ce9152

Please sign in to comment.