From 87e1bf3f72e9868f2ed55d731d774178c41851f9 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Mon, 6 Feb 2023 00:39:06 +0100 Subject: [PATCH] Add space --- libretranslate/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libretranslate/app.py b/libretranslate/app.py index 6333b33..4706abd 100644 --- a/libretranslate/app.py +++ b/libretranslate/app.py @@ -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)