mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-25 01:11:00 +00:00
Add space
This commit is contained in:
parent
8ace1bddf9
commit
87e1bf3f72
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue