mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-05-03 17:37:50 +00:00
start refactor Upstream func
This commit is contained in:
parent
de4706bf58
commit
e6198e4ddd
3 changed files with 7 additions and 8 deletions
server
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue