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

Commit 86936f5

Browse files
feat: Check if url arg is an HTTP URL
1 parent 65ed616 commit 86936f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supabase_functions/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ def is_valid_str_arg(target: str) -> bool:
1515
return isinstance(target, str) and len(target.strip()) > 0
1616

1717

18-
def is_https_url(url: str) -> bool:
19-
return urlparse(url).scheme == "https"
18+
def is_http_url(url: str) -> bool:
19+
return urlparse(url).scheme in {"https", "http"}

0 commit comments

Comments
 (0)