1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-12-18 08:27:03 +02:00

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)