From 5c51f487189738181e1d3ea1c6daec30114f379b Mon Sep 17 00:00:00 2001 From: Matt Pannella Date: Wed, 18 Sep 2024 16:14:33 -0400 Subject: [PATCH] need a user agent for the api --- src/services/CoinOpService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/services/CoinOpService.cs b/src/services/CoinOpService.cs index 307ac7f..869c225 100644 --- a/src/services/CoinOpService.cs +++ b/src/services/CoinOpService.cs @@ -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) {