Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading