Skip to content

Commit

Permalink
Merge pull request #485 from canpolat/patch-1
Browse files Browse the repository at this point in the history
Fix CSV and TSV mime types
  • Loading branch information
Emmanuel T Odeke committed Nov 21, 2015
2 parents af00788 + 350c343 commit 0fb8707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
}

Expand Down

0 comments on commit 0fb8707

Please sign in to comment.