We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afbff1c commit a9dd56dCopy full SHA for a9dd56d
flask_oauthlib/utils.py
@@ -32,19 +32,8 @@ def decode_base64(text):
32
return to_unicode(base64.b64decode(text), 'utf-8')
33
34
35
-def create_response(*args):
+def create_response(headers, body, status):
36
"""Create response class for Flask."""
37
-
38
- # changes due to https://github.com/idan/oauthlib/pull/201
39
- if len(args) == 4:
40
- uri, headers, body, status = args
41
- if uri:
42
- headers = {'Location': uri}
43
- elif len(args) == 3:
44
- headers, body, status = args
45
- else:
46
- raise ValueError('invalid arguments %r', args)
47
48
response = Response(body or '')
49
for k, v in headers.items():
50
response.headers[k] = v
0 commit comments