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_key from URL templates and form body parameters
  • Added Authorization header with DeepL-Auth-Key scheme to HTTP requests
  • Switched from PostAsync (which created a redundant, unused HttpRequestMessage) to SendAsync using the properly configured request object

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.