MIME type for CSV files should be text/csv
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 755
- Forks
- 128
- PR merge metrics
- No merged PRs in 30d
Description
When I am trying to download a dataset, like https://www.openml.org/data/get_csv/61/dataset_61_iris.arff, the HTTP headers says it is a plain text file:
HTTP/1.1 200 OK
Date: Tue, 03 Dec 2019 23:24:56 GMT
Server: Apache/2.4.29 (Ubuntu)
Set-Cookie: ci_session=tn9ucdbuum857upd4j89otpgvv4fv9jh; expires=Wed, 04-Dec-2019 01:24:56 GMT; Max-Age=7200; path=/; HttpOnly
Expires: 0
Cache-Control: must-revalidate
Pragma: public
Content-Description: File Transfer
Content-Disposition: attachment; filename=dataset_61_iris.csv
Content-Transfer-Encoding: binary
Connection: keep-alive
Keep-Alive: timeout=300, max=500
Vary: Accept-Encoding
Content-Length: 4612
Content-Type: text/plain;charset=UTF-8
RFC 7111 specifies that it should be text/csv: https://www.iana.org/assignments/media-types/text/csv
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the download endpoint serving the dataset URL and inspect how the CSV response headers are set. Confirm the response currently uses text/plain, then verify that CSV downloads return Content-Type text/csv and retain the existing attachment behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100