mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-06 14:07:09 +08:00
Fix bug: deleting Content-Type when property does not exist (#73)
This commit is contained in:
parent
3291883d86
commit
1af6fd53bb
@ -181,7 +181,7 @@ class ApiClient:
|
|||||||
files: Dict[str, Any],
|
files: Dict[str, Any],
|
||||||
headers: Optional[Dict[str, str]] = None,
|
headers: Optional[Dict[str, str]] = None,
|
||||||
) -> Dict[str, Any]:
|
) -> Dict[str, Any]:
|
||||||
if headers:
|
if headers and "Content-Type" in headers:
|
||||||
del headers["Content-Type"]
|
del headers["Content-Type"]
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@ -571,7 +571,7 @@ class PollingOperation(Generic[T, R]):
|
|||||||
method=self.poll_endpoint.method.value,
|
method=self.poll_endpoint.method.value,
|
||||||
path=self.poll_endpoint.path,
|
path=self.poll_endpoint.path,
|
||||||
params=self.poll_endpoint.query_params,
|
params=self.poll_endpoint.query_params,
|
||||||
json=request_dict,
|
data=request_dict,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Parse response
|
# Parse response
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user