Skip to content

fix: send a dokploy-cli User-Agent header on API requests - #62

Open
Gourav224 wants to merge 1 commit into
Dokploy:mainfrom
Gourav224:fix/client-user-agent
Open

Gourav224 wants to merge 1 commit into
Dokploy:mainfrom
Gourav224:fix/client-user-agent

Conversation

@Gourav224

Copy link
Copy Markdown

Requests currently go out with axios' default User-Agent, which Cloudflare commonly blocks, so the CLI fails against servers behind it. This sets User-Agent: dokploy-cli/<version> (version read from package.json) on the API client and adds a test for it.

Fixes #49

🤖 Generated with Claude Code

Axios' default user agent is often blocked by Cloudflare. Fixes Dokploy#49.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.

Set User Agent to Avoid Cloudflare issues

1 participant