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
2 changes: 2 additions & 0 deletions httpx/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ def trust_env(self) -> bool:
def _enforce_trailing_slash(self, url: URL) -> URL:
if url.raw_path.endswith(b"/"):
return url
if url.query:
return url.copy_with()
return url.copy_with(raw_path=url.raw_path + b"/")

def _get_proxy_map(
Expand Down
Loading