This commit is contained in:
Josue-T 2024-07-12 22:29:49 +00:00 committed by GitHub
commit f8b8dce71c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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