From e5e56bdeebbf583a91f90c76bcdba0a4514a9eb1 Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Tue, 10 Sep 2024 20:07:05 +0800 Subject: [PATCH] Fix response the cached manifest --- crproxy_manifest.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crproxy_manifest.go b/crproxy_manifest.go index bddfaa8..c2e06a0 100644 --- a/crproxy_manifest.go +++ b/crproxy_manifest.go @@ -43,6 +43,9 @@ func (c *CRProxy) cacheManifestResponse(rw http.ResponseWriter, r *http.Request, switch resp.StatusCode { case http.StatusUnauthorized, http.StatusForbidden: + if c.cachedManifest(rw, r, info) { + return + } errcode.ServeJSON(rw, errcode.ErrorCodeDenied) return }