Add CSV as a known Content-Type.

This commit is contained in:
Sergio Benitez 2016-12-27 15:42:27 -06:00
parent 9da512c60c
commit 20f13f0bc1
1 changed files with 2 additions and 0 deletions

View File

@ -111,6 +111,7 @@ impl ContentType {
"CSS", CSS, is_css => "text", "css" ; "charset=utf-8",
"data form", DataForm, is_data_form => "multipart", "form-data",
"XML", XML, is_xml => "text", "xml" ; "charset=utf-8",
"CSV", CSV, is_csv => "text", "csv" ; "charset=utf-8",
"PNG", PNG, is_png => "image", "png",
"GIF", GIF, is_gif => "image", "gif",
"BMP", BMP, is_bmp => "image", "bmp",
@ -148,6 +149,7 @@ impl ContentType {
"txt" => ContentType::Plain,
"html" | "htm" => ContentType::HTML,
"xml" => ContentType::XML,
"csv" => ContentType::CSV,
"js" => ContentType::JavaScript,
"css" => ContentType::CSS,
"json" => ContentType::JSON,