diff --git a/server/warcserver/handler.go b/server/warcserver/handler.go index 878e305..2a1c12d 100644 --- a/server/warcserver/handler.go +++ b/server/warcserver/handler.go @@ -165,6 +165,11 @@ func (h Handler) resource(w http.ResponseWriter, r *http.Request) { } break } + if res == nil { + http.NotFound(w, r) + return + + } ctx, cancel := context.WithTimeout(r.Context(), 10*time.Second) defer cancel()