rename const

This commit is contained in:
6543 2021-12-15 06:21:30 +01:00
parent 2ee530394e
commit 041a1e11b9
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
4 changed files with 5 additions and 5 deletions

View file

@ -91,7 +91,7 @@ func (o *Options) Upstream(ctx *fasthttp.RequestCtx, giteaRoot, giteaAPIToken st
cachedResponse = cachedValue.(fileResponse)
} else {
req = fasthttp.AcquireRequest()
req.SetRequestURI(path.Join(giteaRoot, giteaApiRepos, uri))
req.SetRequestURI(path.Join(giteaRoot, giteaAPIRepos, uri))
req.Header.Set(fasthttp.HeaderAuthorization, giteaAPIToken)
res = fasthttp.AcquireResponse()
res.SetBodyStream(&strings.Reader{}, -1)