Skip to content

Commit 87310bb

Browse files
committed
Merge pull request #1 from tomds/master
Update internal calls to sign_request() to use include_body_hash parameter
2 parents e5cd87c + 5c8c239 commit 87310bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth2/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ def set_signature_method(self, method):
637637
self.method = method
638638

639639
def request(self, uri, method="GET", body='', headers=None,
640-
redirections=httplib2.DEFAULT_MAX_REDIRECTS, connection_type=None):
640+
redirections=httplib2.DEFAULT_MAX_REDIRECTS, connection_type=None, include_body_hash=True):
641641
DEFAULT_POST_CONTENT_TYPE = 'application/x-www-form-urlencoded'
642642

643643
if not isinstance(headers, dict):
@@ -659,7 +659,7 @@ def request(self, uri, method="GET", body='', headers=None,
659659
token=self.token, http_method=method, http_url=uri,
660660
parameters=parameters, body=body, is_form_encoded=is_form_encoded)
661661

662-
req.sign_request(self.method, self.consumer, self.token)
662+
req.sign_request(self.method, self.consumer, self.token, include_body_hash=include_body_hash)
663663

664664
schema, rest = urllib.splittype(uri)
665665
if rest.startswith('//'):

0 commit comments

Comments
 (0)