From 07c3491573e0480cea994314fa143ca872026ba2 Mon Sep 17 00:00:00 2001 From: Cizz22 Date: Tue, 14 Oct 2025 05:05:40 +0700 Subject: [PATCH] fix --- src/auth/service.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/auth/service.py b/src/auth/service.py index 8888f85..d68f639 100644 --- a/src/auth/service.py +++ b/src/auth/service.py @@ -90,14 +90,17 @@ async def internal_key(request: Request): ) try: + headers = { + 'Content-Type': 'application/json' + } - payload = json.dumps({ + response = requests.post( + f"{config.AUTH_SERVICE_API}/sign-in", + headers=headers, + data=json.dumps({ "username": "user10", "password": "123456" }) - response = requests.post( - f"{config.AUTH_SERVICE_API}/sign-in", - data=payload ) if not response.ok: