summaryrefslogtreecommitdiff
path: root/oauthlib/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'oauthlib/common.py')
-rw-r--r--oauthlib/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oauthlib/common.py b/oauthlib/common.py
index ab2f95d..e5ab6eb 100644
--- a/oauthlib/common.py
+++ b/oauthlib/common.py
@@ -416,7 +416,7 @@ class Request(object):
body = self.body
headers = self.headers.copy()
if body:
- body = SANITIZE_PATTERN.sub('\1<SANITIZED>', body)
+ body = SANITIZE_PATTERN.sub('\1<SANITIZED>', str(body))
if 'Authorization' in headers:
headers['Authorization'] = '<SANITIZED>'
return '<oauthlib.Request url="%s", http_method="%s", headers="%s", body="%s">' % (