mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-04 07:47:05 +08:00
Fix bug: deleting Content-Type when property does not exist (#73)
This commit is contained in:
parent
9cb1fa3f0d
commit
804b4808a7
@ -251,7 +251,7 @@ class ApiClient:
|
||||
files: Dict[str, Any],
|
||||
headers: Optional[Dict[str, str]] = None,
|
||||
) -> Dict[str, Any]:
|
||||
if headers:
|
||||
if headers and "Content-Type" in headers:
|
||||
del headers["Content-Type"]
|
||||
|
||||
return {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user