mirror of
https://github.com/actions/runner.git
synced 2025-12-12 05:37:01 +00:00
Add user-agent to all http clients using RawClientHttpRequestSettings. (#3115)
This commit is contained in:
@@ -49,6 +49,9 @@ namespace GitHub.Runner.Worker
|
||||
!string.IsNullOrEmpty(orchestrationId.Value))
|
||||
{
|
||||
HostContext.UserAgents.Add(new ProductInfoHeaderValue("OrchestrationId", orchestrationId.Value));
|
||||
|
||||
// make sure orchestration id is in the user-agent header.
|
||||
VssUtil.InitializeVssClientSettings(HostContext.UserAgents, HostContext.WebProxy);
|
||||
}
|
||||
|
||||
var jobServerQueueTelemetry = false;
|
||||
|
||||
Reference in New Issue
Block a user