Skip to content

Commit

Permalink
Fix response the cached manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
wzshiming committed Sep 10, 2024
1 parent fe16983 commit e5e56bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crproxy_manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e5e56bd

Please sign in to comment.