From d62474bef3800a8dba13ac8316d3f9ecf3f76fdc Mon Sep 17 00:00:00 2001 From: crystal Date: Sat, 21 May 2022 02:21:46 -0600 Subject: [PATCH] fix build --- server/upstream/upstream.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/upstream/upstream.go b/server/upstream/upstream.go index 7481045..da97021 100644 --- a/server/upstream/upstream.go +++ b/server/upstream/upstream.go @@ -119,9 +119,9 @@ func (o *Options) Upstream(ctx *fasthttp.RequestCtx, giteaClient *gitea.Client, optionsForNotFoundPages.appendTrailingSlash = false for _, notFoundPage := range upstreamNotFoundPages { optionsForNotFoundPages.TargetPath = "/" + notFoundPage - if optionsForNotFoundPages.Upstream(ctx, giteaRoot, giteaAPIToken, branchTimestampCache, fileResponseCache) { - _ = fileResponseCache.Set(uri+"?timestamp="+strconv.FormatInt(o.BranchTimestamp.Unix(), 10), fileResponse{ - exists: false, + if optionsForNotFoundPages.Upstream(ctx, giteaClient, branchTimestampCache, fileResponseCache) { + _ = fileResponseCache.Set(uri+"?timestamp="+o.timestamp(), gitea.FileResponse{ + Exists: false, }, fileCacheTimeout) return true }