fix compression

This commit is contained in:
crapStone 2024-11-24 23:08:22 +01:00
parent c2c188c5b0
commit 3630a0d4ad
No known key found for this signature in database
GPG key ID: 22D4BF0CF7CC29C8
4 changed files with 50 additions and 17 deletions

View file

@ -182,7 +182,7 @@ func (o *Options) Upstream(ctx *context.Context, giteaClient *gitea.Client, redi
// add extension for encoding
path := o.TargetPath + allowedEncodings[encoding]
reader, header, statusCode, err = giteaClient.ServeRawContent(o.TargetOwner, o.TargetRepo, o.TargetBranch, path)
reader, header, statusCode, err = giteaClient.ServeRawContent(o.TargetOwner, o.TargetRepo, o.TargetBranch, path, true)
if statusCode == 404 {
continue
}