Skip to content

Commit

Permalink
Merge pull request #637 from venuDreddy/typo/url-util
Browse files Browse the repository at this point in the history
typo fixed in set_url_query_param function docs
  • Loading branch information
obsd authored Aug 12, 2024
2 parents cb7eff8 + d7b047d commit fdf29bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/opal-common/opal_common/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def set_url_query_param(url: str, param_name: str, param_value: str):
>> set_url_query_param('https://api.permit.io/opal/data/config', 'token', 'secret')
'https://api.permit.io/opal/data/config?token=secret'
>> set_url_query_param('https://api.permit.io/opal/data/config&some=var', 'token', 'secret')
'https://api.permit.io/opal/data/config&some=var?token=secret'
>> set_url_query_param('https://api.permit.io/opal/data/config?some=var', 'token', 'secret')
'https://api.permit.io/opal/data/config?some=var&token=secret'
"""
parsed_url: ParseResult = urlparse(url)

Expand Down

0 comments on commit fdf29bb

Please sign in to comment.