Skip to content

Commit

Permalink
Merge pull request #255 from nationalarchives/user-agent
Browse files Browse the repository at this point in the history
Add user agent
  • Loading branch information
dragon-dxw authored Nov 9, 2023
2 parents 1451e13 + cb9ecd5 commit b8d60d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openapi_server/connect.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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}",
)

0 comments on commit b8d60d6

Please sign in to comment.