Skip to content

Commit

Permalink
Support absolute url to override base url
Browse files Browse the repository at this point in the history
  • Loading branch information
vivodi committed Dec 1, 2024
1 parent 930cce0 commit 5229fae
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions aiohttp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,11 +414,7 @@ def request(

def _build_url(self, str_or_url: StrOrURL) -> URL:
url = URL(str_or_url)
return (
self._base_url and not url.absolute
if self._base_url and not url.absolute
else url
)
return self._base_url.join(url) if self._base_url and not url.absolute else url

async def _request(
self,
Expand Down

0 comments on commit 5229fae

Please sign in to comment.