From 11bcf52a7058a1e032c10997d2838bec00d6901c Mon Sep 17 00:00:00 2001 From: SantosFC <33733406+SantosFC@users.noreply.github.com> Date: Sun, 7 Jun 2026 14:39:36 -0300 Subject: [PATCH] fix: atualizar User-Agent para 1.0.1 --- healthcheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/healthcheck.py b/healthcheck.py index 84546cf..c8b7b77 100644 --- a/healthcheck.py +++ b/healthcheck.py @@ -25,7 +25,7 @@ def load_config(): def ping(url: str, body: bytes, timeout: int) -> int: req = urllib.request.Request( url, data=body, method="POST", - headers={"User-Agent": "health-monitor/1.0", "Content-Type": "application/json"} + headers={"User-Agent": "health-monitor/1.0.1", "Content-Type": "application/json"} ) with urllib.request.urlopen(req, timeout=timeout) as response: return response.getcode() @@ -36,7 +36,7 @@ def ping_fail(url: str, body: bytes, timeout: int) -> None: try: req = urllib.request.Request( fail_url, data=body, method="POST", - headers={"User-Agent": "health-monitor/1.0", "Content-Type": "application/json"} + headers={"User-Agent": "health-monitor/1.0.1", "Content-Type": "application/json"} ) urllib.request.urlopen(req, timeout=timeout) except Exception: