Fix DeepL API auth to use Authorization header instead of legacy query/body params by markruler · Pull Request #815 · bbepis/XUnity.AutoTranslator
Pull request overview
This PR migrates the DeepL Legitimate (authenticated) translation endpoint from the deprecated auth_key query/body parameter authentication to the required Authorization: DeepL-Auth-Key header method, as mandated by DeepL's January 15, 2026 deprecation of legacy auth methods (issue #803).
Changes:
- Removed
auth_keyfrom URL templates and form body parameters - Added
Authorizationheader withDeepL-Auth-Keyscheme to HTTP requests - Switched from
PostAsync(which created a redundant, unusedHttpRequestMessage) toSendAsyncusing the properly configured request object
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.