Skip to content

Commit

Permalink
feat: Refactor base HTTP client to enable request limits to work
Browse files Browse the repository at this point in the history
Convert single quotes to double quotes.
  • Loading branch information
akalex committed Jan 17, 2024
1 parent 441e8f3 commit 92f1eba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions async_firebase/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ def join_url(
"""
url = base
if parts:
url = '/'.join([base.strip('/'), quote('/'.join(map(lambda x: str(x).strip('/'), parts)))])
url = "/".join([base.strip("/"), quote("/".join(map(lambda x: str(x).strip("/"), parts)))])

# trailing slash can be important
if trailing_slash:
url = f'{url}/'
url = f"{url}/"
# as well as a leading slash
if leading_slash:
url = f'/{url}'
url = f"/{url}"

if params:
url = urljoin(url, '?{}'.format(urlencode(params)))
url = urljoin(url, "?{}".format(urlencode(params)))

return url

Expand Down

0 comments on commit 92f1eba

Please sign in to comment.