Skip to content

Commit

Permalink
feat: declare dgipy client in request header (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson authored Nov 11, 2024
1 parent 5c9f2c5 commit b9ece06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dgipy/dgidb.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ def _get_client(api_url: str) -> Client:
:param api_url: endpoint to request data at
:return: GraphQL client
"""
transport = RequestsHTTPTransport(url=api_url)
transport = RequestsHTTPTransport(
url=api_url, headers={"dgidb-client-name": "dgipy"}
)
return Client(transport=transport, fetch_schema_from_transport=True)


Expand Down

0 comments on commit b9ece06

Please sign in to comment.