Skip to content

Commit

Permalink
Fix user-agent feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ZEDGR committed Nov 2, 2024
1 parent b561916 commit 11f6305
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion challonge/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from httpx import HTTPStatusError

tz = tzlocal.get_localzone()
user_agent = "pychallonge-1.11.5"
user_agent = "pychallonge"

CHALLONGE_API_URL = "api.challonge.com/v1"

Expand Down Expand Up @@ -100,6 +100,7 @@ def fetch(method, uri, params_prefix=None, timeout=30.0, **params):
response = request(
method,
url,
headers={"User-Agent": user_agent},
auth=get_credentials(),
timeout=timeout,
**r_data
Expand Down

0 comments on commit 11f6305

Please sign in to comment.