1
0
Fork 0

parse json in forms

This commit is contained in:
Sean Sube 2024-02-17 13:51:42 -06:00
parent c60c2639f4
commit 1a4c31d077
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ from ..utils import (
get_boolean,
get_from_list,
get_not_empty,
load_config_str,
)
from .context import ServerContext
from .load import (
@ -375,7 +376,7 @@ def pipeline_from_request(
server, request.json, default_pipeline
)
elif mime == "multipart/form-data":
form_json = request.form.get("json")
form_json = load_config_str(request.form.get("json"))
device, params, size = pipeline_from_json(server, form_json, default_pipeline)
else:
device = build_device(server, request.args)