mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Merge 52f6f48f03
into 497ea8a4af
This commit is contained in:
commit
f8b8dce71c
1 changed files with 23 additions and 19 deletions
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import json
|
||||
import re
|
||||
import errno
|
||||
import logging
|
||||
|
@ -314,6 +314,10 @@ class _ActionsMapPlugin:
|
|||
for a in args:
|
||||
params[a] = True
|
||||
|
||||
if request.content_type == "application/json":
|
||||
# Manage in REST with JSON content mode
|
||||
params.update(json.loads(list(request.params.dict.keys())[0]))
|
||||
else:
|
||||
# Append other request params
|
||||
req_params = list(request.params.dict.items())
|
||||
# TODO test special chars in filename
|
||||
|
|
Loading…
Add table
Reference in a new issue