mirror of https://github.com/rwf2/Rocket.git
Add CSV as a known Content-Type.
This commit is contained in:
parent
9da512c60c
commit
20f13f0bc1
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue