lack of mime types is not a fatal error. when a Content-Type header
is not provided in swift's PutObj, it uses this mime type mapping
to guess a content type based on the object's suffix
Fixes: http://tracker.ceph.com/issues/38328
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
89dc5a6df4503d70555bcd80af0e2f6ee896e28a)
int rgw_tools_init(CephContext *cct)
{
ext_mime_map = new std::map<std::string, std::string>;
- int ret = ext_mime_map_init(cct, cct->_conf->rgw_mime_types_file.c_str());
- if (ret < 0)
- return ret;
-
+ ext_mime_map_init(cct, cct->_conf->rgw_mime_types_file.c_str());
+ // ignore errors; missing mime.types is not fatal
return 0;
}