remove use of rawInfoPage redirect

This commit is contained in:
crapStone 2023-11-16 18:24:25 +01:00
parent cbb2ce6d07
commit e32d705917
No known key found for this signature in database
GPG key ID: D74B82E7CDD863FE
5 changed files with 8 additions and 15 deletions

View file

@ -21,7 +21,6 @@ const (
// Handler handles a single HTTP request to the web server.
func Handler(mainDomainSuffix, rawDomain string,
giteaClient *gitea.Client,
rawInfoPage string,
blacklistedPaths, allowedCorsDomains []string,
defaultPagesBranches []string,
dnsLookupCache, canonicalDomainCache, redirectsCache cache.SetGetKey,
@ -89,7 +88,7 @@ func Handler(mainDomainSuffix, rawDomain string,
if rawDomain != "" && strings.EqualFold(trimmedHost, rawDomain) {
log.Debug().Msg("raw domain request detected")
handleRaw(log, ctx, giteaClient,
mainDomainSuffix, rawInfoPage,
mainDomainSuffix,
trimmedHost,
pathElements,
canonicalDomainCache, redirectsCache)