We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77f982c commit 8f0b655Copy full SHA for 8f0b655
src/unstructured_client/_hooks/custom/clean_server_url_hook.py
@@ -18,13 +18,8 @@ def clean_server_url(base_url: str) -> str:
18
base_url = "http://" + base_url
19
20
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:
+
+ if "api.unstructuredapp.io" in parsed_url.netloc:
28
if parsed_url.scheme != "https":
29
parsed_url = parsed_url._replace(scheme="https")
30
0 commit comments