From cb9ecd5ae1afda956a93234e3d6343d4db09d8e8 Mon Sep 17 00:00:00 2001 From: David McKee Date: Thu, 9 Nov 2023 14:58:07 +0000 Subject: [PATCH] Add user agent --- src/openapi_server/connect.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openapi_server/connect.py b/src/openapi_server/connect.py index d165237..2bbe45a 100644 --- a/src/openapi_server/connect.py +++ b/src/openapi_server/connect.py @@ -1,7 +1,7 @@ import os import environ -from caselawclient.Client import MarklogicApiClient +from caselawclient.Client import MarklogicApiClient, DEFAULT_USER_AGENT from fastapi import Security from openapi_server.models.extra_models import TokenModel # noqa: F401 @@ -19,4 +19,5 @@ def client_for_basic_auth( username=token_basic.username, password=token_basic.password, use_https=False, + user_agent=f"ds-caselaw-privileged-api/unknown {DEFAULT_USER_AGENT}", )