Skip to content

Commit

Permalink
Add MIME type for CSV files
Browse files Browse the repository at this point in the history
Add MIME type for comma-separated value files and use the UTF-8 charset:
  "text/csv; charset=utf-8"

At the moment, they appear as type:
  "application/octet-stream"

...which is the default type for unknown files.

This should fix the CSV file created by archmap.
Currently, when you open it in a browser some of
the text is incorrectly formatted.

References:

* https://archwomen.org/media/archmap/archmap.csv
* https://www.iana.org/assignments/media-types/text/csv
  • Loading branch information
guyfawcus committed Nov 5, 2017
1 parent e6bea6e commit 0be4bd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lighttpd/conf.d/mimetypes.conf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
".rst" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml",
".csv" => "text/csv; charset=utf-8",
".mpeg" => "video/mpeg",
".mpg" => "video/mpeg",
".mov" => "video/quicktime",
Expand Down

0 comments on commit 0be4bd4

Please sign in to comment.