We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
RedirectError
HEAD
1 parent ba1eec4 commit 8fc13b9Copy full SHA for 8fc13b9
gitlab/client.py
@@ -625,8 +625,8 @@ def _check_redirects(result: requests.Response) -> None:
625
for item in result.history:
626
if item.status_code not in (301, 302):
627
continue
628
- # GET methods can be redirected without issue
629
- if item.request.method == "GET":
+ # GET and HEAD methods can be redirected without issue
+ if item.request.method in ("GET", "HEAD"):
630
631
target = item.headers.get("location")
632
raise gitlab.exceptions.RedirectError(
0 commit comments