From 39d56126ea4c33fece745b58eb31d708ff7d9197 Mon Sep 17 00:00:00 2001 From: Nathan Van Gheem Date: Tue, 8 Apr 2025 22:47:43 -0400 Subject: [PATCH] fix cleaning urls --- src/unstructured_client/_hooks/custom/clean_server_url_hook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unstructured_client/_hooks/custom/clean_server_url_hook.py b/src/unstructured_client/_hooks/custom/clean_server_url_hook.py index 3d0e0438..046798ef 100644 --- a/src/unstructured_client/_hooks/custom/clean_server_url_hook.py +++ b/src/unstructured_client/_hooks/custom/clean_server_url_hook.py @@ -24,7 +24,7 @@ def clean_server_url(base_url: str) -> str: parsed_url = parsed_url._replace(scheme="https") # We only want the base url - return urlunparse(parsed_url._replace(path="", params="", query="", fragment="")) + return urlunparse(parsed_url._replace(params="", query="", fragment="")) def choose_server_url(endpoint_url: str | None, client_url: str, default_endpoint_url: str) -> str: