Skip to content

Commit 2a2ef2e

Browse files
author
Pat Patterson
committed
Fix for #437 - remove erroneous charset param from Content-Type header
1 parent 46f886c commit 2a2ef2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

requests_oauthlib/oauth2_session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def fetch_token(
325325

326326
headers = headers or {
327327
"Accept": "application/json",
328-
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
328+
"Content-Type": "application/x-www-form-urlencoded",
329329
}
330330
self.token = {}
331331
request_kwargs = {}
@@ -426,7 +426,7 @@ def refresh_token(
426426
if headers is None:
427427
headers = {
428428
"Accept": "application/json",
429-
"Content-Type": ("application/x-www-form-urlencoded;charset=UTF-8"),
429+
"Content-Type": ("application/x-www-form-urlencoded"),
430430
}
431431

432432
r = self.post(

0 commit comments

Comments
 (0)