Skip to content
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

Content-Type for CSV download is imprecise and ambiguous #528

Open
Conal-Tuohy opened this issue Aug 15, 2022 · 0 comments
Open

Content-Type for CSV download is imprecise and ambiguous #528

Conal-Tuohy opened this issue Aug 15, 2022 · 0 comments

Comments

@Conal-Tuohy
Copy link

When I download a CSV file containing a transcription (Expedition admin/Tools/Export all tasks/Single de-normalised CSV file), the server sends an HTTP Content-Type header which declares the content to be plain text, rather than CSV:

content-type: text/plain

The correct media type is text/csv.

Secondly, and more importantly, the content-type header doesn't explicitly declare a character encoding. Note that the IANA media type registration for text/csv recommends that applications should interpret a CSV without an explicitly defined encoding as UTF-8, and it also recommends that an explicit encoding be provided, e.g.

content-type: text/csv; charset=utf-8

Typically this metadata would be lost when a browser saves the CSV to a file, but its existence in the HTTP message would still be a valuable statement to any developers working with CSV files sourced from digivol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant