Skip to content

Commit

Permalink
Merge pull request #114 from stealthrocket/remove-httpx-dependency
Browse files Browse the repository at this point in the history
remove httpx dependency from dispatch.fastapi module
  • Loading branch information
achille-roussel authored Mar 7, 2024
2 parents a6aa521 + 9fee7a3 commit 38894a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dispatch/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ def read_root():
import logging
import os
from datetime import timedelta
from urllib.parse import urlparse

import fastapi
import fastapi.responses
from http_message_signatures import InvalidSignature
from httpx import _urlparse

from dispatch.client import Client
from dispatch.function import Registry
Expand Down Expand Up @@ -116,7 +116,7 @@ def __init__(

logger.info("configuring Dispatch endpoint %s", endpoint)

parsed_url = _urlparse.urlparse(endpoint)
parsed_url = urlparse(endpoint)
if not parsed_url.netloc or not parsed_url.scheme:
raise ValueError(
f"{endpoint_from} must be a full URL with protocol and domain (e.g., https://example.com)"
Expand Down

0 comments on commit 38894a3

Please sign in to comment.