httpx/tests/client
Friday 18927fa8e8 Fix base_url query parameters being corrupted during URL merging
When base_url contains query parameters (e.g. "https://example.com/get?data=1"),
_enforce_trailing_slash() appended "/" to raw_path which includes the query string,
corrupting "?data=1" into "?data=1/". Similarly, _merge_url() concatenated paths
without separating the query string from the path component.

Fix both methods to split raw_path at "?" before manipulating the path, then
rejoin with the query string intact.

Fixes #3614

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 04:34:10 +00:00
..
__init__.py Tweak test naming 2019-05-17 13:49:24 +01:00
test_async_client.py Use __future__.annotations (#3068) 2024-01-24 14:30:22 +00:00
test_auth.py Upgrade Python type checker mypy (#3654) 2025-09-04 08:48:49 -05:00
test_client.py Fix base_url query parameters being corrupted during URL merging 2026-02-18 04:34:10 +00:00
test_cookies.py Deprecate per-request cookies (#1574) 2021-04-19 11:18:32 +01:00
test_event_hooks.py Add support for zstd decoding (#3139) 2024-03-21 10:17:15 +00:00
test_headers.py Move utility functions from _utils.py to _client.py (#3389) 2024-11-15 11:42:52 +00:00
test_properties.py Upgrade Python type checker mypy (#3654) 2025-09-04 08:48:49 -05:00
test_proxies.py add socks5h proxy support (#3178) 2024-10-29 14:10:33 +00:00
test_queryparams.py Upgrade Python type checker mypy (#3654) 2025-09-04 08:48:49 -05:00
test_redirects.py Enabling ruff C416 (#3001) 2023-12-13 11:30:39 +00:00