actions / http-client

A lightweight HTTP client optimized for use with actions, TypeScript with generics and async await.
https://github.com/features/actions
Other
72 stars 33 forks source link

Allow overriding `user-agent` via `headers`. #65

Open fniephaus opened 2 years ago

fniephaus commented 2 years ago

This PR adds the ability to override the user-agent via the headers option. This is useful, for example, when the user-agent is set to some value in a dependency (e.g., here), also allowing users to control the user-agent per request (not just per HttpClient).