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

Commit77c04b1

Browse files
nejchJohnVillalovos
authored andcommitted
refactor(client): remove handling for incorrect link header
This was a quirk only present in GitLab 13.0 and fixed with 13.1.Seehttps://gitlab.com/gitlab-org/gitlab/-/merge_requests/33714 andhttps://gitlab.com/gitlab-org/gitlab/-/issues/218504 for morecontext.
1 parent9e0b60f commit77c04b1

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

‎gitlab/client.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,13 +1135,8 @@ def _query(
11351135
query_data=query_dataor {}
11361136
result=self._gl.http_request("get",url,query_data=query_data,**kwargs)
11371137
try:
1138-
links=result.links
1139-
iflinks:
1140-
next_url=links["next"]["url"]
1141-
else:
1142-
next_url=requests.utils.parse_header_links(result.headers["links"])[
1143-
0
1144-
]["url"]
1138+
next_url=result.links["next"]["url"]
1139+
11451140
# if the next url is different with user provided server URL
11461141
# then give a warning it may because of misconfiguration
11471142
# but if the option to fix provided then just reconstruct it

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp