Browse Source

Merge pull request #142 from yanyiwu/master

if mt != "application/octet-stream"
pull/145/head
chrislusf 10 years ago
parent
commit
5646ca9458
  1. 2
      go/weed/weed_server/volume_server_handlers_read.go

2
go/weed/weed_server/volume_server_handlers_read.go

@ -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
}
}

Loading…
Cancel
Save