Skip to content

Commit

Permalink
Add runner or worker to the useragent. (#3457)
Browse files Browse the repository at this point in the history
  • Loading branch information
TingluoHuang authored Sep 6, 2024
1 parent 4c0a43f commit 0b0cb55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Runner.Common/HostContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ public HostContext(string hostType, string logFile = null)
var currentProcess = Process.GetCurrentProcess();
_userAgents.Add(new ProductInfoHeaderValue("Pid", currentProcess.Id.ToString()));
_userAgents.Add(new ProductInfoHeaderValue("CreationTime", Uri.EscapeDataString(DateTime.UtcNow.ToString("O"))));
_userAgents.Add(new ProductInfoHeaderValue($"({hostType})"));
}

public string GetDirectory(WellKnownDirectory directory)
Expand Down

0 comments on commit 0b0cb55

Please sign in to comment.