Skip to content

Commit 0fb8707

Browse files
author
Emmanuel T Odeke
committed
Merge pull request #485 from canpolat/patch-1
Fix CSV and TSV mime types
2 parents af00788 + 350c343 commit 0fb8707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/misc.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ func NonEmptyTrimmedStrings(v ...string) (splits []string) {
461461
}
462462

463463
var regExtStrMap = map[string]string{
464-
"csv": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
464+
"csv": "text/csv",
465465
"html?": "text/html",
466466
"te?xt": "text/plain",
467467
"xml": "text/xml",
@@ -501,7 +501,7 @@ var regExtStrMap = map[string]string{
501501

502502
"docx?": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
503503
"pptx?": "application/vnd.ms-powerpoint",
504-
"tsv": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
504+
"tsv": "text/tab-separated-values",
505505
"xlsx?": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
506506
}
507507

0 commit comments

Comments
 (0)