fix(csv-viewer): add support for missing text encodings in dropdown list (#5795)

This commit is contained in:
Ariel Leyva
2026-03-06 09:26:13 -05:00
committed by GitHub
parent c950a57df8
commit 4af3f85e64
7 changed files with 439 additions and 17 deletions

View File

@@ -43,7 +43,7 @@ var resourceGetHandler = withUser(func(w http.ResponseWriter, r *http.Request, d
return renderJSON(w, r, file)
} else if encoding == "true" {
if file.Type != "text" {
return http.StatusUnsupportedMediaType, fmt.Errorf("file is not a text file")
return renderJSON(w, r, file)
}
f, err := d.user.Fs.Open(r.URL.Path)