From a75f936e9b108246226f21076ca7ad86b3df64a8 Mon Sep 17 00:00:00 2001 From: Jish2 Date: Thu, 16 Nov 2023 21:44:10 -0600 Subject: [PATCH] content type --- code/authorizers/aad.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/authorizers/aad.py b/code/authorizers/aad.py index 7fa90c4..1e92037 100644 --- a/code/authorizers/aad.py +++ b/code/authorizers/aad.py @@ -42,7 +42,8 @@ def lambda_handler(event, context): # additional context is cached graph_api_endpoint = f"https://graph.microsoft.com/v1.0/me" headers = { - 'Authorization': f'Bearer {token}' + 'Authorization': f'Bearer {token}', + "Content-type": "application/json" } response = requests.get(graph_api_endpoint, headers=headers)