Skip to content

Commit

Permalink
add useragent
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhathcock committed May 14, 2024
1 parent 915973d commit ca77eda
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Build/Github.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ public static async Task BuildInstallers(string token, string runId)
var request = new HttpRequestMessage()
{
RequestUri = new Uri("https://api.github.com/repos/specklesystems/connector-installers/dispatches"),
Headers = { Authorization = new AuthenticationHeaderValue("Bearer", token) },
Headers =
{
Authorization = new AuthenticationHeaderValue("Bearer", token),
UserAgent = { new ProductInfoHeaderValue("Speckle.build", "3.0.0") }
},
Content = content
};
request.Headers.Add("X-GitHub-Api-Version", "2022-11-28");
Expand Down

0 comments on commit ca77eda

Please sign in to comment.