From 94184aea0340b61cae58a9f8df8794f3e5c3719f Mon Sep 17 00:00:00 2001 From: Namonay Date: Mon, 2 Mar 2026 12:31:49 +0000 Subject: [PATCH] a --- client/bs_shutdown.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/bs_shutdown.py b/client/bs_shutdown.py index 07fdf12..b251597 100644 --- a/client/bs_shutdown.py +++ b/client/bs_shutdown.py @@ -20,7 +20,7 @@ payload = { def get_data(): data = json.dumps(payload).encode("utf-8") - req = urllib.request.Request( + req = request.Request( url, headers={"Content-Type": "application/json"}, data=data, @@ -28,7 +28,7 @@ def get_data(): ) try: - with urllib.request.urlopen(req, timeout=10) as response: + with request.urlopen(req, timeout=10) as response: data = response.read() json_data = json.loads(data) print(json_data)