Skip to content
Closed
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
4 changes: 2 additions & 2 deletions src/zeep/transports.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,13 @@ def __init__(
self.cache = cache
self.wsdl_client = wsdl_client or httpx.Client(
verify=verify_ssl,
proxies=proxy,
timeout=timeout,
**({"proxies": proxy} if httpx.__version__ < "0.28.0" else {"proxy": proxy}),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This version check is incorrect:

>>> "0.3.0" <= "0.28.0"
False

0.3.0 being older than 0.28.0 should be using proxy.

See #1447

)
self.client = client or httpx.AsyncClient(
verify=verify_ssl,
proxies=proxy,
timeout=operation_timeout,
**({"proxies": proxy} if httpx.__version__ < "0.28.0" else {"proxy": proxy}),
)
self.logger = logging.getLogger(__name__)

Expand Down