Skip to content

Commit ec38f6c

Browse files
authored
Merge pull request #438 from metadaddy/remove-charset
Fix for #437 - remove erroneous charset param from Content-Type header
2 parents 2113a70 + 2a2ef2e commit ec38f6c

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
@@ -339,7 +339,7 @@ def fetch_token(
339339

340340
headers = headers or {
341341
"Accept": "application/json",
342-
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
342+
"Content-Type": "application/x-www-form-urlencoded",
343343
}
344344
self.token = {}
345345
request_kwargs = {}
@@ -440,7 +440,7 @@ def refresh_token(
440440
if headers is None:
441441
headers = {
442442
"Accept": "application/json",
443-
"Content-Type": ("application/x-www-form-urlencoded;charset=UTF-8"),
443+
"Content-Type": ("application/x-www-form-urlencoded"),
444444
}
445445

446446
r = self.post(

0 commit comments

Comments
 (0)