mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 13:56:57 +00:00
Fix linting
This commit is contained in:
parent
c1a2b9cfa3
commit
5a844330d9
2 changed files with 5 additions and 5 deletions
|
@ -156,11 +156,11 @@ func (client *Client) ServeRawContent(targetOwner, targetRepo, ref, resource str
|
|||
linkDest = path.Join(path.Dir(resource), linkDest)
|
||||
|
||||
// we store symlink not content to reduce duplicates in cache
|
||||
fileResponse := FileResponse {
|
||||
Exists: true,
|
||||
fileResponse := FileResponse{
|
||||
Exists: true,
|
||||
IsSymlink: true,
|
||||
Body: []byte(linkDest),
|
||||
ETag: resp.Header.Get(ETagHeader),
|
||||
Body: []byte(linkDest),
|
||||
ETag: resp.Header.Get(ETagHeader),
|
||||
}
|
||||
log.Trace().Msgf("file response has %d bytes", len(fileResponse.Body))
|
||||
if err := client.responseCache.Set(cacheKey, fileResponse, fileCacheTimeout); err != nil {
|
||||
|
|
|
@ -47,7 +47,7 @@ type Options struct {
|
|||
BranchTimestamp time.Time
|
||||
// internal
|
||||
dontAppendTrailingSlash bool
|
||||
redirectIfExists string
|
||||
redirectIfExists string
|
||||
|
||||
ServeRaw bool
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue