Fix Content-Disposition error for retrieving OAuth request tokens
This commit is contained in:
parent
c2059c4a74
commit
ec305bda61
@ -190,10 +190,6 @@ def request_token(request):
|
|||||||
error = "Could not decode data."
|
error = "Could not decode data."
|
||||||
return json_response({"error": error}, status=400)
|
return json_response({"error": error}, status=400)
|
||||||
|
|
||||||
if data == "":
|
|
||||||
error = "Unknown Content-Type"
|
|
||||||
return json_response({"error": error}, status=400)
|
|
||||||
|
|
||||||
if not data and request.headers:
|
if not data and request.headers:
|
||||||
data = request.headers
|
data = request.headers
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user