Merge pull request #142 from yanyiwu/master

if mt != "application/octet-stream"
This commit is contained in:
chrislusf 2015-05-16 19:43:14 -07:00
commit 5646ca9458

View File

@ -89,7 +89,7 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
}
if n.MimeSize > 0 {
mt := string(n.Mime)
if mt != "application/octet-stream" {
if !strings.HasPrefix(mt, "application/octet-stream") {
mtype = mt
}
}