Skip to content

fix: send the User-Agent to the wiki API - #23

Merged
drptbl merged 1 commit into
mainfrom
fix/user-agent
Oct 30, 2026
Merged

drptbl merged 1 commit into
mainfrom
fix/user-agent

Conversation

@drptbl

@drptbl drptbl commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

WikiClient.headers was defined but never applied, so every TibiaWiki API request went out as python-requests/<version>. The session now carries tibiawikisql/<version> (+https://github.com/tibia-sh/tibiawiki-sql), a descriptive agent with a contact URL as the MediaWiki API etiquette asks.

@drptbl
drptbl merged commit b8c632e into main Oct 30, 2026
5 checks passed
@drptbl
drptbl deleted the fix/user-agent branch October 30, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant