forked from 0x2620/pandora
data optional
This commit is contained in:
parent
d0e2f8e1d4
commit
ea917e00e6
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ class ApiActions(dict):
|
|||
}
|
||||
}
|
||||
'''
|
||||
data = json.loads(request.POST['data'])
|
||||
data = json.loads(request.POST.get('data', '{}'))
|
||||
docs = data.get('docs', False)
|
||||
_actions = self.keys()
|
||||
_actions.sort()
|
||||
|
|
Loading…
Reference in a new issue