Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 10d4002

Browse files
feat: Check if url arg is an HTTP URL
1 parent 2dab27b commit 10d4002

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supabase_functions/_async/functions_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from httpx import HTTPError, Response
44

55
from ..errors import FunctionsHttpError, FunctionsRelayError
6-
from ..utils import AsyncClient, is_https_url, is_valid_str_arg
6+
from ..utils import AsyncClient, is_http_url, is_valid_str_arg
77
from ..version import __version__
88

99

@@ -16,7 +16,7 @@ def __init__(
1616
verify: bool = True,
1717
proxy: Optional[str] = None,
1818
):
19-
if not is_https_url(url):
19+
if not is_http_url(url):
2020
ValueError("url must be a valid HTTP URL string")
2121
self.url = url
2222
self.headers = {

0 commit comments

Comments
 (0)