Skip to content

Commit 8608b6e

Browse files
author
derwentx
committed
pass timeout to Requests
1 parent ac8f6af commit 8608b6e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

wordpress/transport.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,16 @@ def request(self, method, url, auth=None, params=None, data=None, **kwargs):
9090
headers,
9191
kwargs.get('headers', {})
9292
)
93+
timeout = self.timeout
94+
if 'timeout' in kwargs:
95+
timeout = kwargs['timeout']
9396

9497
request_kwargs = dict(
9598
method=method,
9699
url=url,
97100
headers=headers,
98101
verify=self.verify_ssl,
99-
timeout=self.timeout,
102+
timeout=timeout,
100103
)
101104
request_kwargs.update(kwargs)
102105
if auth is not None:

0 commit comments

Comments
 (0)