Skip to content
Snippets Groups Projects
Commit 7b61ae6a authored by Nejc Habjan's avatar Nejc Habjan
Browse files

refactor(client): remove handling for incorrect link header

This was a quirk only present in GitLab 13.0 and fixed with 13.1.
See
gitlab-org/gitlab!33714 and
gitlab-org/gitlab#218504 for more
context.
parent e2ea8b89
No related branches found
No related tags found
No related merge requests found
......@@ -1130,13 +1130,8 @@ class GitlabList:
query_data = query_data or {}
result = self._gl.http_request("get", url, query_data=query_data, **kwargs)
try:
links = result.links
if links:
next_url = links["next"]["url"]
else:
next_url = requests.utils.parse_header_links(result.headers["links"])[
0
]["url"]
next_url = result.links["next"]["url"]
# if the next url is different with user provided server URL
# then give a warning it may because of misconfiguration
# but if the option to fix provided then just reconstruct it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment