]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't crash on missing /etc/mime.types 27329/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 15 Mar 2019 20:47:19 +0000 (16:47 -0400)
committerPrashant D <pdhange@redhat.com>
Tue, 2 Apr 2019 23:08:56 +0000 (19:08 -0400)
commitb825870f2c9ff98a937bf21e90ec7d99ed1f254c
treec6beed7551dedefd9157c23652ade1ac189c5629
parent02a600c1d64d9de8aeabfb7d3f2a68d1274093eb
rgw: don't crash on missing /etc/mime.types

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)
src/rgw/rgw_tools.cc