Make controls input work for Recraft Image to Image node (#120)

This commit is contained in:
Jedrzej Kosinski 2025-05-04 04:13:23 -05:00 committed by Robin Huang
parent b7d647cd58
commit f1808ef315

View File

@ -250,10 +250,14 @@ class ApiClient:
data: Dict[str, Any],
files: Dict[str, Any],
headers: Optional[Dict[str, str]] = None,
multipart_parser = None,
) -> Dict[str, Any]:
if headers and "Content-Type" in headers:
del headers["Content-Type"]
if multipart_parser:
data = multipart_parser(data)
return {
"data": data,
"files": files,