From fa69243297927c93c3cfa546f7c5016ef76f4926 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=85=B0=EF=B8=8F=F0=9F=85=B0=EF=B8=8F=F0=9F=85=B0?= =?UTF-8?q?=EF=B8=8F1=EF=B8=8F=E2=83=A36=EF=B8=8F=E2=83=A32=EF=B8=8F?= =?UTF-8?q?=E2=83=A3=20=E2=9C=94=EF=B8=8F?= Date: Sat, 3 Jan 2026 20:19:21 -0600 Subject: [PATCH 1/2] ops: Add utilservice header to notification id endpoint --- MixItUp.Base/Services/MixItUpService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MixItUp.Base/Services/MixItUpService.cs b/MixItUp.Base/Services/MixItUpService.cs index 11b8fe854..2e1ac6da7 100644 --- a/MixItUp.Base/Services/MixItUpService.cs +++ b/MixItUp.Base/Services/MixItUpService.cs @@ -20,6 +20,7 @@ using System.Linq; using System.Net; using System.Net.Http; +using System.Reflection; using System.Text; using System.Threading; using System.Threading.Tasks; @@ -610,6 +611,9 @@ private async Task CheckForNewNotifications() { using (AdvancedHttpClient client = new AdvancedHttpClient(UtilApiEndpoint)) { + client.DefaultRequestHeaders.Add("User-Agent", $"MixItUp/{Assembly.GetEntryAssembly().GetName().Version.ToString()} (Web call from Mix It Up; https://mixitupapp.com; support@mixitupapp.com)"); + client.DefaultRequestHeaders.Add("Client-Key", UtilServiceHelper.GenerateClientKey()); + HttpResponseMessage response = await client.GetAsync("api/services/notifications/id"); if (response.StatusCode == HttpStatusCode.OK) { From 8b08563b0122fc6dd2283ffb3309c2e2afcb3d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=85=B0=EF=B8=8F=F0=9F=85=B0=EF=B8=8F=F0=9F=85=B0?= =?UTF-8?q?=EF=B8=8F1=EF=B8=8F=E2=83=A36=EF=B8=8F=E2=83=A32=EF=B8=8F?= =?UTF-8?q?=E2=83=A3=20=E2=9C=94=EF=B8=8F?= Date: Sat, 3 Jan 2026 20:53:26 -0600 Subject: [PATCH 2/2] ops: add utilservice headers to outage and notification endpoints --- MixItUp.Base/Services/MixItUpService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MixItUp.Base/Services/MixItUpService.cs b/MixItUp.Base/Services/MixItUpService.cs index 2e1ac6da7..b08b3c698 100644 --- a/MixItUp.Base/Services/MixItUpService.cs +++ b/MixItUp.Base/Services/MixItUpService.cs @@ -660,6 +660,9 @@ public async Task> GetNotifications() { using (AdvancedHttpClient client = new AdvancedHttpClient(UtilApiEndpoint)) { + client.DefaultRequestHeaders.Add("User-Agent", $"MixItUp/{Assembly.GetEntryAssembly().GetName().Version.ToString()} (Web call from Mix It Up; https://mixitupapp.com; support@mixitupapp.com)"); + client.DefaultRequestHeaders.Add("Client-Key", UtilServiceHelper.GenerateClientKey()); + HttpResponseMessage response = await client.GetAsync("/api/services/notifications"); if (response.StatusCode == HttpStatusCode.OK) { @@ -716,6 +719,9 @@ public async Task CheckOutageStatus() { using (AdvancedHttpClient client = new AdvancedHttpClient(UtilApiEndpoint)) { + client.DefaultRequestHeaders.Add("User-Agent", $"MixItUp/{Assembly.GetEntryAssembly().GetName().Version.ToString()} (Web call from Mix It Up; https://mixitupapp.com; support@mixitupapp.com)"); + client.DefaultRequestHeaders.Add("Client-Key", UtilServiceHelper.GenerateClientKey()); + HttpResponseMessage response = await client.GetAsync("api/services/notifications/outage"); if (response.StatusCode == HttpStatusCode.OK) {