Skip to content

Commit 2e566f5

Browse files
committed
Fix tee proxy with 404
1 parent 9a76750 commit 2e566f5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cache.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ func (m *MirrorHandler) cacheResponse(w http.ResponseWriter, r *http.Request) {
195195
if m.Logger != nil {
196196
m.Logger.Println("Tee Cache error", file, result.Err)
197197
}
198+
if errors.Is(result.Err, ErrNotOK) {
199+
m.notFoundResponse(w, r)
200+
return
201+
}
202+
m.errorResponse(w, r, result.Err)
198203
return
199204
}
200205
tee, ok = result.Val.(*teeResponse)

0 commit comments

Comments
 (0)