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: