Skip to content

Commit

Permalink
feat: Check if url arg is an HTTP URL
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlospaco committed Oct 29, 2024
1 parent f10fba0 commit 78677a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgrest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ def get_origin_and_cast(typ: type[type[_T]]) -> type[_T]:
return cast(Type[_T], get_origin(typ))


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

0 comments on commit 78677a6

Please sign in to comment.