Skip to content

Commit

Permalink
handle new install page redirect location (bakito#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakito authored Apr 12, 2023
1 parent c22f38f commit 009715c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (cl *client) doGet(req *resty.Request, url string) error {
if err != nil {
if resp != nil && resp.StatusCode() == http.StatusFound {
loc := resp.Header().Get("Location")
if loc == "/install.html" {
if loc == "/install.html" || loc == "/control/install.html" {
return ErrSetupNeeded
}
}
Expand Down

0 comments on commit 009715c

Please sign in to comment.