dotnet / dotnet/vscode-dotnet-runtime

Use custom agent header in axios web requests.

Open
#2,510 0 comments 2 reactions 1 assignee Assigned to @Copilot View on GitHub
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

We should add a request header for user-agent that makes our web request worker singleton send the user agent header as 'vscode-dotnet-runtime' so we can see in telemetry where requests are coming from. We should add a small unit test to validate this and compare to see what the prior user agent header was in case there was protection already in place against the existing agent header for sending too many requests.

thank you @drewnoakes for the suggestion!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.