Skip to content

Commit 8f0b655

Browse files
committed
Fix unit tests
1 parent 77f982c commit 8f0b655

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/unstructured_client/_hooks/custom/clean_server_url_hook.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,8 @@ def clean_server_url(base_url: str) -> str:
1818
base_url = "http://" + base_url
1919

2020
parsed_url: ParseResult = urlparse(base_url)
21-
22-
unstructured_services = [
23-
"api.unstructuredapp.io",
24-
"api.unstructured.io",
25-
"platform.unstructuredapp.io",
26-
]
27-
if parsed_url.netloc in unstructured_services:
21+
22+
if "api.unstructuredapp.io" in parsed_url.netloc:
2823
if parsed_url.scheme != "https":
2924
parsed_url = parsed_url._replace(scheme="https")
3025

0 commit comments

Comments
 (0)