Skip to content

Add User-Agent header to OSV API requests#2

Merged
andrew merged 1 commit intomainfrom
user-agent
Feb 10, 2026
Merged

Add User-Agent header to OSV API requests#2
andrew merged 1 commit intomainfrom
user-agent

Conversation

@andrew
Copy link
Contributor

@andrew andrew commented Feb 9, 2026

Adds a userAgent field to the OSV Source with default "vulns" and a WithUserAgent option to override it. Sets the User-Agent header on all three request types (Query, QueryBatch, Get). Includes tests.

Default is 'vulns', configurable via WithUserAgent option.
Sets the header on all three request types (Query, QueryBatch, Get).
@andrew andrew merged commit f5b6567 into main Feb 10, 2026
2 checks passed
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.

1 participant