start refactor Upstream func

This commit is contained in:
6543 2021-12-05 15:59:43 +01:00
parent de4706bf58
commit e6198e4ddd
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
3 changed files with 7 additions and 8 deletions

View file

@ -126,7 +126,7 @@ func Handler(mainDomainSuffix, rawDomain []byte,
}
// Try to request the file from the Gitea API
if !upstream.Upstream(ctx, targetOwner, targetRepo, targetBranch, targetPath, giteaRoot, giteaApiToken, targetOptions, branchTimestampCache, fileResponseCache) {
if !targetOptions.Upstream(ctx, targetOwner, targetRepo, targetBranch, targetPath, giteaRoot, giteaApiToken, branchTimestampCache, fileResponseCache) {
html.ReturnErrorPage(ctx, ctx.Response.StatusCode())
}
}