]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't crash on missing /etc/mime.types 27354/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 03:01:29 +0000 (23:01 -0400)
commit2853bf5baeefac9a506c0fe84f8fdc3f71864be6
tree60f5b987649acf22f81ee0d0528e48140bbd1da9
parent64524b5a8c4248c02a6a3740fd9e2c34e311699b
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