PR #65245 drop the header set for standby module,
we should still have it.
Fixes: https://tracker.ceph.com/issues/74149
Signed-off-by: Nitzan Mordechai <nmordech@ibm.com>
# Lock the function execution
assert isinstance(_global_instance, Module)
with _global_instance.collect_lock:
+ cherrypy.response.headers['Content-Type'] = 'text/plain; charset=utf-8'
return self._metrics(_global_instance)
@staticmethod
@cherrypy.expose
def metrics(self) -> str:
+ cherrypy.response.headers['Content-Type'] = 'text/plain; charset=utf-8'
return ''
cherrypy.tree.mount(Root(), '/', {})