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

This commit is contained in:
Ariel Leyva authored and GitHub committed 2026-03-06 15:26:13 +01:00
1 parent c950a57df8
commit 4af3f85e64
7 files changed
+439 -17

No files matched your search

+1 -1
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)