summaryrefslogtreecommitdiff
path: root/oauthlib/oauth2/rfc6749/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'oauthlib/oauth2/rfc6749/errors.py')
-rw-r--r--oauthlib/oauth2/rfc6749/errors.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/oauthlib/oauth2/rfc6749/errors.py b/oauthlib/oauth2/rfc6749/errors.py
index e5543b5..ec2b0d1 100644
--- a/oauthlib/oauth2/rfc6749/errors.py
+++ b/oauthlib/oauth2/rfc6749/errors.py
@@ -108,12 +108,12 @@ class OAuth2Error(Exception):
"""
authvalues = [
"Bearer",
- "error={}".format(self.error)
+ 'error="{}"'.format(self.error)
]
if self.description:
- authvalues.append("error_description={}".format(self.description))
+ authvalues.append('error_description="{}"'.format(self.description))
if self.uri:
- authvalues.append("error_uri={}".format(self.uri))
+ authvalues.append('error_uri="{}"'.format(self.uri))
return {"WWW-Authenticate": ", ".join(authvalues)}
return {}