]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't crash on missing /etc/mime.types 27332/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 15 Mar 2019 20:47:19 +0000 (16:47 -0400)
committerPrashant D <pdhange@redhat.com>
Wed, 3 Apr 2019 00:29:56 +0000 (20:29 -0400)
commit583f9009c3b09363c85521164f646e3b68053663
treeae6598fc362af5e5ad9b439186383e248ea664d9
parent750861613f197956a677e902326a91209721d8fe
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