Skip to content

Commit

Permalink
Merge pull request #2221 from python-gitlab/jlvillal/unparse
Browse files Browse the repository at this point in the history
chore: use `urlunparse` instead of string replace
  • Loading branch information
nejch committed Aug 4, 2022
2 parents d263f57 + 6d1b62d commit 9e0b60f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab/client.py
Expand Up @@ -685,7 +685,7 @@ def http_request(
params = parse.parse_qs(parsed.query)
utils.copy_dict(src=query_data, dest=params)

url = raw_url.replace(parsed.query, "").strip("?")
url = parse.urlunparse(parsed._replace(query=""))

# Deal with kwargs: by default a user uses kwargs to send data to the
# gitlab server, but this generates problems (python keyword conflicts
Expand Down

0 comments on commit 9e0b60f

Please sign in to comment.