diff --git a/oauth2/__init__.py b/oauth2/__init__.py index 835270e3..3b9b3dcf 100644 --- a/oauth2/__init__.py +++ b/oauth2/__init__.py @@ -648,7 +648,7 @@ def request(self, uri, method="GET", body='', headers=None, DEFAULT_POST_CONTENT_TYPE) is_form_encoded = \ - headers.get('Content-Type') == 'application/x-www-form-urlencoded' + ((headers.get('Content-Type') == 'application/x-www-form-urlencoded') and (method == "POST")) if is_form_encoded and body: parameters = parse_qs(body)