diff --git a/catalogd/internal/storage/localdir.go b/catalogd/internal/storage/localdir.go index 87558a6ba..08b7e296e 100644 --- a/catalogd/internal/storage/localdir.go +++ b/catalogd/internal/storage/localdir.go @@ -243,8 +243,7 @@ func (s *LocalDirV1) handleV1Query(w http.ResponseWriter, r *http.Request) { if schema == "" && pkg == "" && name == "" { // If no parameters are provided, return the entire catalog (this is the same as /api/v1/all) - w.Header().Add("Content-Type", "application/jsonl") - http.ServeContent(w, r, "", catalogStat.ModTime(), catalogFile) + serveJSONLines(w, r, catalogFile) return } idx, err := s.getIndex(catalog)