diff --git a/projects/fal_client/src/fal_client/client.py b/projects/fal_client/src/fal_client/client.py index c3817f20..cb2c122b 100644 --- a/projects/fal_client/src/fal_client/client.py +++ b/projects/fal_client/src/fal_client/client.py @@ -11,6 +11,7 @@ from dataclasses import dataclass, field from functools import cached_property from typing import Any, AsyncIterator, Iterator, TYPE_CHECKING, Optional, Literal +from urllib.parse import urlencode import httpx from httpx_sse import aconnect_sse, connect_sse @@ -442,7 +443,7 @@ async def submit( url += "/" + path.lstrip("/") if webhook_url is not None: - url += f"?fal_webhook={webhook_url}" + url += "?" + urlencode({"fal_webhook": webhook_url}) headers = {} if hint is not None: @@ -667,7 +668,7 @@ def submit( url += "/" + path.lstrip("/") if webhook_url is not None: - url += f"?fal_webhook={webhook_url}" + url += "?" + urlencode({"fal_webhook": webhook_url}) headers = {} if hint is not None: