mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-04 10:47:06 +08:00
Make controls input work for Recraft Image to Image node (#120)
This commit is contained in:
parent
b7d647cd58
commit
f1808ef315
@ -250,10 +250,14 @@ class ApiClient:
|
|||||||
data: Dict[str, Any],
|
data: Dict[str, Any],
|
||||||
files: Dict[str, Any],
|
files: Dict[str, Any],
|
||||||
headers: Optional[Dict[str, str]] = None,
|
headers: Optional[Dict[str, str]] = None,
|
||||||
|
multipart_parser = None,
|
||||||
) -> Dict[str, Any]:
|
) -> Dict[str, Any]:
|
||||||
if headers and "Content-Type" in headers:
|
if headers and "Content-Type" in headers:
|
||||||
del headers["Content-Type"]
|
del headers["Content-Type"]
|
||||||
|
|
||||||
|
if multipart_parser:
|
||||||
|
data = multipart_parser(data)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"data": data,
|
"data": data,
|
||||||
"files": files,
|
"files": files,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user