From 350c3431b6c15948092a052dcfe69b56be0a999b Mon Sep 17 00:00:00 2001 From: Canpolat Date: Fri, 20 Nov 2015 11:52:33 +0100 Subject: [PATCH] Fix CSV and TSV mime types Coercing csv, tsv to officedocument (#357) doesn't work around #232 ("Push flag "-convert" has no effect"). Therefore there is no need for this hack. --- src/misc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc.go b/src/misc.go index 08991f6b..e13d0bfa 100644 --- a/src/misc.go +++ b/src/misc.go @@ -461,7 +461,7 @@ func NonEmptyTrimmedStrings(v ...string) (splits []string) { } var regExtStrMap = map[string]string{ - "csv": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + "csv": "text/csv", "html?": "text/html", "te?xt": "text/plain", "xml": "text/xml", @@ -501,7 +501,7 @@ var regExtStrMap = map[string]string{ "docx?": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "pptx?": "application/vnd.ms-powerpoint", - "tsv": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + "tsv": "text/tab-separated-values", "xlsx?": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", }