Disable redirects, setup redirect check, cleanup login

This commit is contained in:
2023-12-28 09:17:22 -06:00
parent 4dcff9bc7b
commit 79368126d3
2 changed files with 25 additions and 11 deletions

View File

@@ -19,6 +19,10 @@ func init() {
jar, _ := cookiejar.New(nil)
client = &http.Client{
Jar: jar,
CheckRedirect: func(req *http.Request, via []*http.Request) error {
// Don't follow redirects
return http.ErrUseLastResponse
},
}
}