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

Commit f10fba0

Browse files
feat: Check if url arg is an HTTP URL
1 parent 97ac8a2 commit f10fba0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postgrest/base_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from httpx import BasicAuth, Timeout
77

8-
from .utils import AsyncClient, SyncClient, is_https_url
8+
from .utils import AsyncClient, SyncClient, is_http_url
99

1010

1111
class BasePostgrestClient(ABC):
@@ -21,7 +21,7 @@ def __init__(
2121
verify: bool = True,
2222
proxy: Optional[str] = None,
2323
) -> None:
24-
if not is_https_url(base_url):
24+
if not is_http_url(base_url):
2525
ValueError("base_url must be a valid HTTP URL string")
2626
headers = {
2727
**headers,

0 commit comments

Comments
 (0)