fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some preparation for upgrade.
[wolnelektury.git]
/
src
/
api
/
utils.py
diff --git
a/src/api/utils.py
b/src/api/utils.py
index
c9c1f94
..
a3a1f89
100644
(file)
--- a/
src/api/utils.py
+++ b/
src/api/utils.py
@@
-25,8
+25,9
@@
def oauthlib_request(request):
"headers": headers,
}
"headers": headers,
}
-def oauthlib_response(
(headers, body, status)
):
+def oauthlib_response(
response_tuple
):
"""Creates a django.http.HttpResponse from (headers, body, status) tuple from OAuthlib."""
"""Creates a django.http.HttpResponse from (headers, body, status) tuple from OAuthlib."""
+ headers, body, status = response_tuple
response = HttpResponse(body, status=status)
for k, v in headers.items():
if k == 'Location':
response = HttpResponse(body, status=status)
for k, v in headers.items():
if k == 'Location':