Update notification service

This commit is contained in:
MacRimi
2026-03-23 17:49:39 +01:00
parent cd123b3479
commit 168726c131
4 changed files with 10 additions and 3 deletions
+4
View File
@@ -152,6 +152,10 @@ class AIProvider(ABC):
import urllib.request
import urllib.error
# Ensure User-Agent is set (Cloudflare blocks requests without it - error 1010)
if 'User-Agent' not in headers:
headers['User-Agent'] = 'ProxMenux/1.0'
data = json.dumps(payload).encode('utf-8')
req = urllib.request.Request(url, data=data, headers=headers, method='POST')