diff options
Diffstat (limited to 'gluster/swift/common/Glusterfs.py')
-rw-r--r-- | gluster/swift/common/Glusterfs.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gluster/swift/common/Glusterfs.py b/gluster/swift/common/Glusterfs.py index 55012d3..5d2cab1 100644 --- a/gluster/swift/common/Glusterfs.py +++ b/gluster/swift/common/Glusterfs.py @@ -37,6 +37,7 @@ _allow_mount_per_server = False _implicit_dir_objects = False _container_update_object_count = False _account_update_container_count = False +_ignore_unsupported_headers = False if _fs_conf.read(os.path.join(SWIFT_DIR, 'fs.conf')): try: @@ -97,6 +98,19 @@ if _fs_conf.read(os.path.join(SWIFT_DIR, 'fs.conf')): except (NoSectionError, NoOptionError): pass + # -- Hidden configuration option -- + # Ignore unsupported headers and allow them in a request without + # returning a 400-BadRequest. This setting can be set to + # allow unsupported headers such as X-Delete-At and + # X-Delete-After even though they will not be used. + try: + _ignore_unsupported_headers = \ + _fs_conf.get('DEFAULT', + 'ignore_unsupported_headers', + "no") in TRUE_VALUES + except (NoSectionError, NoOptionError): + pass + NAME = 'glusterfs' |