Bug #57868 ยป rbd-api.patch
rbd-target-api.py | ||
---|---|---|
valid_credentials, get_remote_gateways, valid_snapshot_name,
|
||
GatewayAPIError)
|
||
app = Flask(__name__)
|
||
class RBDAPIFlask(Flask):
|
||
def process_response(self, response):
|
||
response.headers['server'] = 'rbd-api'
|
||
return(response)
|
||
app = RBDAPIFlask(__name__)
|
||
# workaround for https://github.com/pallets/flask/issues/2549
|
||
app.config['JSONIFY_PRETTYPRINT_REGULAR'] = False
|
||