perf: 优化OAuth2.0获取Access_token的content_type

pull/11945/head
jiangweidong 2023-10-24 10:26:38 +08:00
parent b04c7f022f
commit 08a2d96213
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class OAuth2Backend(JMSModelBackend):
'Accept': 'application/json'
}
if token_method == 'post':
access_token_response = requests_func(access_token_url, headers=headers, json=query_dict)
access_token_response = requests_func(access_token_url, headers=headers, data=query_dict)
else:
access_token_response = requests_func(access_token_url, headers=headers)
try: