Skip to content

Commit 81f385c

Browse files
authored
Add missing timeout=... to top-level httpx.stream() function. (#1613)
1 parent 4fbf275 commit 81f385c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

httpx/_api.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,12 @@ def stream(
142142
[0]: /quickstart#streaming-responses
143143
"""
144144
with Client(
145-
cookies=cookies, proxies=proxies, cert=cert, verify=verify, trust_env=trust_env
145+
cookies=cookies,
146+
proxies=proxies,
147+
cert=cert,
148+
verify=verify,
149+
timeout=timeout,
150+
trust_env=trust_env,
146151
) as client:
147152
with client.stream(
148153
method=method,

0 commit comments

Comments
 (0)