aboutsummaryrefslogtreecommitdiff
path: root/go/tools
diff options
context:
space:
mode:
authoryanyiwu <wuyanyi09@foxmail.com>2015-05-16 18:55:58 +0800
committeryanyiwu <wuyanyi09@foxmail.com>2015-05-16 18:55:58 +0800
commit96b73e3e94a30c583753ae5aef876155c3fa3b79 (patch)
tree3ed78cbaaedb8a136d6b3cc1bc20407d4fe6383c /go/tools
parent3188382ea741ec607f58df13d8609607cf42ab39 (diff)
downloadseaweedfs-96b73e3e94a30c583753ae5aef876155c3fa3b79.tar.xz
seaweedfs-96b73e3e94a30c583753ae5aef876155c3fa3b79.zip
if mt != "application/octet-stream"
became if !strings.HasPrefix(mt, "application/octet-stream") In our situation, mt can be 'application/octet-stream;charset=ISO-8859-1', so I think HasPrefix will be more accurate.
Diffstat (limited to 'go/tools')
0 files changed, 0 insertions, 0 deletions