port upstream

This commit is contained in:
6543 2022-08-28 15:09:54 +02:00
parent e35d5f7cc7
commit 9af9eceb41
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE
3 changed files with 26 additions and 20 deletions

View file

@ -83,6 +83,7 @@ func (client *Client) ServeRawContent(targetOwner, targetRepo, ref, resource str
// cachedResponse.Body = cacheBodyWriter.Bytes()
// _ = fileResponseCache.Set(uri+"?timestamp="+o.timestamp(), cachedResponse, fileCacheTimeout)
// }
// store ETag in resp !!!!
objType := resp.Header.Get(giteaObjectTypeHeader)
log.Trace().Msgf("server raw content object: %s", objType)