double quotes in unauthorized exception per rfc7230
This commit is contained in:
@@ -263,7 +263,7 @@ class Unauthorized(SanicException):
|
||||
|
||||
# if auth-scheme is specified, set "WWW-Authenticate" header
|
||||
if scheme is not None:
|
||||
values = ["{!s}={!r}".format(k, v) for k, v in kwargs.items()]
|
||||
values = ['{!s}="{!s}"'.format(k, v) for k, v in kwargs.items()]
|
||||
challenge = ', '.join(values)
|
||||
|
||||
self.headers = {
|
||||
|
||||
Reference in New Issue
Block a user