Skip to content

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

Merged
sktan merged 2 commits into
sktan:masterfrom
sonmezonur:remove_user_agent_check
Jun 18, 2026
Merged

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

Conversation

@sonmezonur

Copy link
Copy Markdown
Contributor

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

sktan commented Jun 1, 2026

Copy link
Copy Markdown
Owner

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.

@sonmezonur

Copy link
Copy Markdown
Contributor Author

Hello @sktan. Have you had a chance to look into it?

@sktan

sktan commented Jun 18, 2026

Copy link
Copy Markdown
Owner

LGTM - Seems to work ok, merging it in 👍

@sktan sktan merged commit be8ac8b into sktan:master Jun 18, 2026
2 checks passed
@sktan

sktan commented Jun 18, 2026

Copy link
Copy Markdown
Owner

@sonmezonur i'll create a release in a couple of hours, sorry for the delay!

@sonmezonur

Copy link
Copy Markdown
Contributor Author

Thank you!

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