[swift][middleware][s3] Content-type of s3api versioning response
11 Mar
2024
11 Mar
'24
1:01 p.m.
Hello,
We are having some compatibility problems caused by the lack of content-type in this part:
https://github.com/openstack/swift/blob/5e5fde12400fc76b9df43b3fcd13eb8a2266...
def GET(self, req): """ Handles GET Bucket versioning. """ sysmeta = req.get_container_info(self.app).get('sysmeta', {})
elem = Element('VersioningConfiguration') if sysmeta.get('versions-enabled'): SubElement(elem, 'Status').text = ( 'Enabled' if config_true_value(sysmeta['versions-enabled']) else 'Suspended') body = tostring(elem)
return HTTPOk(body=body, content_type=None)
Is there a reason for it?
192
Age (days ago)
192
Last active (days ago)
0 comments
1 participants
participants (1)
-
m.victorelloï¼ luizalabs.com