diff options
author | slene <vslene@gmail.com> | 2014-03-28 00:50:13 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-28 00:50:13 +0800 |
commit | 10b412d237e7594951ab3633dc8eebb965e25f68 (patch) | |
tree | 475130d8a79a48f5c80f8e3cdd51bb22cc14947e /modules/base | |
parent | 417d861be679654652dc63801981a3f4e3873283 (diff) | |
download | gitea-10b412d237e7594951ab3633dc8eebb965e25f68.tar.gz gitea-10b412d237e7594951ab3633dc8eebb965e25f68.zip |
commit raw file
Diffstat (limited to 'modules/base')
-rw-r--r-- | modules/base/markdown.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/base/markdown.go b/modules/base/markdown.go index a98ca8cf00..962e1ae1e9 100644 --- a/modules/base/markdown.go +++ b/modules/base/markdown.go @@ -53,7 +53,7 @@ func IsTextFile(data []byte) (string, bool) { func IsImageFile(data []byte) (string, bool) { contentType := http.DetectContentType(data) - if strings.Index(contentType, "img/") != -1 { + if strings.Index(contentType, "image/") != -1 { return contentType, true } return contentType, false |