Skip to content

fix: set canonical User-Agent header format#99

Draft
gjtorikian wants to merge 1 commit intomainfrom
add-id-header
Draft

fix: set canonical User-Agent header format#99
gjtorikian wants to merge 1 commit intomainfrom
add-id-header

Conversation

@gjtorikian
Copy link
Copy Markdown
Contributor

Summary

The Tesla middleware was sending no User-Agent header on outgoing requests. This adds one in the canonical WorkOS SDK format: workos-elixir/{VERSION}, with the version pulled from the application spec.

Test plan

  • Manual verification: Application.spec(:workos, :vsn) returns the charlist version (e.g. ~c"1.2.1"), and Elixir's String.Chars.List implementation converts charlists to a binary on #{} interpolation, so the resulting header value is workos-elixir/1.2.1.
  • Confirm User-Agent on a real outgoing request

🤖 Generated with Claude Code

The Tesla middleware was sending no `User-Agent` header on
outgoing requests, leaving them indistinguishable from
unrelated traffic. Sets the header to
`workos-elixir/{VERSION}`, matching WorkOS' canonical SDK
User-Agent format.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant