summaryrefslogtreecommitdiffstats
path: root/modules/base
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-28 00:50:13 +0800
committerslene <vslene@gmail.com>2014-03-28 00:50:13 +0800
commit10b412d237e7594951ab3633dc8eebb965e25f68 (patch)
tree475130d8a79a48f5c80f8e3cdd51bb22cc14947e /modules/base
parent417d861be679654652dc63801981a3f4e3873283 (diff)
downloadgitea-10b412d237e7594951ab3633dc8eebb965e25f68.tar.gz
gitea-10b412d237e7594951ab3633dc8eebb965e25f68.zip
commit raw file
Diffstat (limited to 'modules/base')
-rw-r--r--modules/base/markdown.go2
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