| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ba1eec4 commit 8fc13b9
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -625,8 +625,8 @@ def _check_redirects(result: requests.Response) -> None: | |||
| 625 | 625 | for item in result.history: | |
| 626 | 626 | if item.status_code not in (301, 302): | |
| 627 | 627 | continue | |
| 628 | - # GET methods can be redirected without issue | ||
| 629 | - if item.request.method == "GET": | ||
| 628 | + # GET and HEAD methods can be redirected without issue | ||
| 629 | + if item.request.method in ("GET", "HEAD"): | ||
| 630 | 630 | continue | |
| 631 | 631 | target = item.headers.get("location") | |
| 632 | 632 | raise gitlab.exceptions.RedirectError( | |
| Back | FazBrowse Home | New Git URL |
0 commit comments