Add space

This commit is contained in:
Piero Toffanin 2023-02-06 00:39:06 +01:00
parent 8ace1bddf9
commit 87e1bf3f72

View file

@ -212,6 +212,7 @@ def create_app(args):
authorization = request.headers.get('Authorization')
if authorization != "Bearer " + args.metrics_auth_token:
abort(401, description=_("Unauthorized"))
registry = CollectorRegistry()
multiprocess.MultiProcessCollector(registry)
return Response(generate_latest(registry), mimetype=CONTENT_TYPE_LATEST)