diff --git a/src/requests/models.py b/src/requests/models.py index c4b25fa079..85dbb11370 100644 --- a/src/requests/models.py +++ b/src/requests/models.py @@ -84,7 +84,10 @@ class RequestEncodingMixin: @property def path_url(self): - """Build the path URL to use.""" + """ + Build the URL path by extracting the path and query from the full URL, + excluding the scheme and domain. Defaults to "/" if no path exists. + """ url = []