def GET(self, req): """ Handles GET Bucket location. """ req.get_response(self.app, method='HEAD') elem = Element('LocationConstraint') if self.conf.location != 'US': elem.text = self.conf.location body = tostring(elem) return HTTPOk(body=body, content_type='application/xml')
def GET(self, req): """ Handles GET Bucket location. """ self.set_s3api_command(req, 'get-bucket-location') req.get_response(self.app, method='HEAD') elem = Element('LocationConstraint') if self.conf.location != 'us-east-1': elem.text = self.conf.location body = tostring(elem) return HTTPOk(body=body, content_type='application/xml')