Skip to content

🐛 (catalogd) serveJSON lines instead of http.serverContent for no-params #1725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions catalogd/internal/storage/localdir.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading