Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6d1b62d

Browse files
chore: useurlunparse instead of string replace
Use the `urlunparse()` function to reconstruct the URL without thequery parameters.
1 parentd263f57 commit6d1b62d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎gitlab/client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ def http_request(
685685
params=parse.parse_qs(parsed.query)
686686
utils.copy_dict(src=query_data,dest=params)
687687

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp