Skip to content

chore: remove User-Agent allowlist check to support all npm-compatible clients#87

Open
sonmezonur wants to merge 2 commits into
sktan:masterfrom
sonmezonur:remove_user_agent_check
Open

chore: remove User-Agent allowlist check to support all npm-compatible clients#87
sonmezonur wants to merge 2 commits into
sktan:masterfrom
sonmezonur:remove_user_agent_check

Conversation

@sonmezonur
Copy link
Copy Markdown

First off, thanks for building and maintaining this project.

The current User-Agent allowlist rejects requests from npm-compatible clients whose User-Agent doesn't match the expected patterns. My specific use case is Unity Package Manager (UPM), which sends User-Agent: axios/1.7.7 because its internal resolver runs as a Node.js subprocess using Axios.

If there isnt a specific reason for the check, can we remove it? Happy to make it opt-in via config instead if you'd prefer — let me know.

@sktan
Copy link
Copy Markdown
Owner

sktan commented Jun 1, 2026

Hey @sonmezonur, thanks for raising the PR!

I'll take a look shortly and run a few tests. The original reason for the user-agent checks was to something do with npm vs pip support, but that may not actually be required.

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.

2 participants