mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
keep your hands to yourself
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ def get_dict(*keys, **extras):
|
||||
data = request.data
|
||||
form = request.form
|
||||
|
||||
if len(form) == 1:
|
||||
if len(form) == 1 and not len(data):
|
||||
if not form.values.pop():
|
||||
data = form.keys().pop()
|
||||
form = None
|
||||
|
||||
Reference in New Issue
Block a user