mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
fix lint
This commit is contained in:
parent
e008cc446d
commit
f259180aed
1 changed files with 12 additions and 12 deletions
|
@ -66,8 +66,9 @@ func SetupHTTPACMEChallengeServer(challengeCache cache.SetGetKey, sslPort uint)
|
||||||
}
|
}
|
||||||
log.Info().Msgf("HTTP-ACME challenge for '%s' succeeded", domain)
|
log.Info().Msgf("HTTP-ACME challenge for '%s' succeeded", domain)
|
||||||
ctx.String(challenge.(string))
|
ctx.String(challenge.(string))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
|
||||||
// it's a normal http request that needs to be redirected
|
// it's a normal http request that needs to be redirected
|
||||||
u, err := url.Parse(fmt.Sprintf("https://%s%s%s", domain, portPart, ctx.Path()))
|
u, err := url.Parse(fmt.Sprintf("https://%s%s%s", domain, portPart, ctx.Path()))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -80,4 +81,3 @@ func SetupHTTPACMEChallengeServer(challengeCache cache.SetGetKey, sslPort uint)
|
||||||
ctx.Redirect(newURL, http.StatusMovedPermanently)
|
ctx.Redirect(newURL, http.StatusMovedPermanently)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue