Skip to content

Commit

Permalink
Match more text mimetypes
Browse files Browse the repository at this point in the history
  • Loading branch information
andreimarcu committed Oct 28, 2015
1 parent 294e8d8 commit 07aaad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion display.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func fileDisplayHandler(c web.C, w http.ResponseWriter, r *http.Request) {
} else if metadata.Mimetype == "application/pdf" {
tpl = Templates["display/pdf.html"]

} else if metadata.Mimetype == "text/plain" || supportedBinExtension(extension) {
} else if metadata.Mimetype[:5] == "text/" || supportedBinExtension(extension) {
if metadata.Size < maxDisplayFileSizeBytes {
bytes, err := ioutil.ReadFile(filePath)
if err == nil {
Expand Down

0 comments on commit 07aaad2

Please sign in to comment.