Skip to content

Commit

Permalink
need a user agent for the api
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpannella committed Sep 18, 2024
1 parent f3740a4 commit 5c51f48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/services/CoinOpService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ public static byte[] FetchLicense(string email)
RequestUri = new Uri(url)
};

var agent = new ProductInfoHeaderValue("Pupdate", "1.0");

request.Headers.UserAgent.Add(agent);

var response = client.Send(request);

if (response.StatusCode == HttpStatusCode.NotFound) {
Expand Down

0 comments on commit 5c51f48

Please sign in to comment.