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)
|
linkDest = path.Join(path.Dir(resource), linkDest)
|
||||||
|
|
||||||
// we store symlink not content to reduce duplicates in cache
|
// we store symlink not content to reduce duplicates in cache
|
||||||
fileResponse := FileResponse {
|
fileResponse := FileResponse{
|
||||||
Exists: true,
|
Exists: true,
|
||||||
IsSymlink: true,
|
IsSymlink: true,
|
||||||
Body: []byte(linkDest),
|
Body: []byte(linkDest),
|
||||||
ETag: resp.Header.Get(ETagHeader),
|
ETag: resp.Header.Get(ETagHeader),
|
||||||
}
|
}
|
||||||
log.Trace().Msgf("file response has %d bytes", len(fileResponse.Body))
|
log.Trace().Msgf("file response has %d bytes", len(fileResponse.Body))
|
||||||
if err := client.responseCache.Set(cacheKey, fileResponse, fileCacheTimeout); err != nil {
|
if err := client.responseCache.Set(cacheKey, fileResponse, fileCacheTimeout); err != nil {
|
||||||
|
|
|
@ -47,7 +47,7 @@ type Options struct {
|
||||||
BranchTimestamp time.Time
|
BranchTimestamp time.Time
|
||||||
// internal
|
// internal
|
||||||
dontAppendTrailingSlash bool
|
dontAppendTrailingSlash bool
|
||||||
redirectIfExists string
|
redirectIfExists string
|
||||||
|
|
||||||
ServeRaw bool
|
ServeRaw bool
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue