mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-12-02 21:25:28 +00:00
just fix bcaceda711
This commit is contained in:
parent
bcaceda711
commit
8207586a48
@ -199,7 +199,7 @@ func (o *Options) Upstream(ctx *fasthttp.RequestCtx, giteaClient *gitea.Client,
|
|||||||
}
|
}
|
||||||
log.Debug().Msg("response")
|
log.Debug().Msg("response")
|
||||||
|
|
||||||
if res != nil && res.Header.ContentLength() > fileCacheSizeLimit && ctx.Err() == nil {
|
if res != nil && res.Header.ContentLength() <= fileCacheSizeLimit && ctx.Err() == nil {
|
||||||
cachedResponse.Exists = true
|
cachedResponse.Exists = true
|
||||||
cachedResponse.MimeType = mimeType
|
cachedResponse.MimeType = mimeType
|
||||||
cachedResponse.Body = cacheBodyWriter.Bytes()
|
cachedResponse.Body = cacheBodyWriter.Bytes()
|
||||||
|
Loading…
Reference in New Issue
Block a user