From bf5758388619afdc957722ca8a9a4ff255df6866 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 25 Oct 2024 11:29:16 +0100 Subject: [PATCH] Keep it neat --- httpx/_models.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/httpx/_models.py b/httpx/_models.py index 01d9583bc5..2ff22b4876 100644 --- a/httpx/_models.py +++ b/httpx/_models.py @@ -328,9 +328,7 @@ def __init__( if isinstance(method, bytes) else method.upper() ) - self.url = URL(url) - if params is not None: - self.url = self.url.copy_merge_params(params=params) + self.url = URL(url) if params is None else URL(url, params=params) self.headers = Headers(headers) self.extensions = {} if extensions is None else extensions