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

Commit7b61ae6

Browse files
committed
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 parente2ea8b8 commit7b61ae6

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
@@ -1130,13 +1130,8 @@ def _query(
11301130
query_data=query_dataor {}
11311131
result=self._gl.http_request("get",url,query_data=query_data,**kwargs)
11321132
try:
1133-
links=result.links
1134-
iflinks:
1135-
next_url=links["next"]["url"]
1136-
else:
1137-
next_url=requests.utils.parse_header_links(result.headers["links"])[
1138-
0
1139-
]["url"]
1133+
next_url=result.links["next"]["url"]
1134+
11401135
# if the next url is different with user provided server URL
11411136
# then give a warning it may because of misconfiguration
11421137
# but if the option to fix provided then just reconstruct it

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp