refactor client api

This commit is contained in:
6543 2022-07-21 21:53:22 +02:00
parent 361639db68
commit 61b959a93b
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
3 changed files with 9 additions and 14 deletions

View file

@ -80,7 +80,7 @@ func (o *Options) Upstream(ctx *fasthttp.RequestCtx, giteaClient *gitea.Client,
if cachedValue, ok := fileResponseCache.Get(uri + "?timestamp=" + o.timestamp()); ok && !cachedValue.(gitea.FileResponse).IsEmpty() {
cachedResponse = cachedValue.(gitea.FileResponse)
} else {
res, err = giteaClient.ServeRawContent(uri)
res, err = giteaClient.ServeRawContent(o.generateUriClientArgs())
}
log.Debug().Msg("acquisition")