projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2059c4
)
Fix Content-Disposition error for retrieving OAuth request tokens
author
Jessica Tallon
<jessica@megworld.co.uk>
Wed, 24 Sep 2014 10:53:33 +0000
(11:53 +0100)
committer
Jessica Tallon
<jessica@megworld.co.uk>
Wed, 24 Sep 2014 10:53:33 +0000
(11:53 +0100)
mediagoblin/oauth/views.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/oauth/views.py
b/mediagoblin/oauth/views.py
index ce12fbe0b6cab3c4e78d0efe46ec5b99145a6136..910df95737266f7629ada32be2f6c754a03808db 100644
(file)
--- a/
mediagoblin/oauth/views.py
+++ b/
mediagoblin/oauth/views.py
@@
-190,10
+190,6
@@
def request_token(request):
error = "Could not decode data."
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:
data = request.headers