From 9df6eba37c375b23cc9fe207cd044fec2640643b Mon Sep 17 00:00:00 2001 From: saidsurucu Date: Sat, 24 May 2025 02:37:24 +0300 Subject: [PATCH] Update client.py --- danistay_mcp_module/client.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/danistay_mcp_module/client.py b/danistay_mcp_module/client.py index 96fb090..5c1c09f 100644 --- a/danistay_mcp_module/client.py +++ b/danistay_mcp_module/client.py @@ -35,8 +35,6 @@ class DanistayApiClient: headers={ "Content-Type": "application/json; charset=UTF-8", # Arama endpoint'leri için "Accept": "application/json, text/plain, */*", # Arama endpoint'leri için - # /getDokuman HTML döndürdüğü için Accept header'ı GET isteğinde farklı olabilir - # ama httpx genellikle bunu yönetir. Gerekirse özel header eklenebilir. "X-Requested-With": "XMLHttpRequest", }, timeout=request_timeout, @@ -44,7 +42,7 @@ class DanistayApiClient: ) def _prepare_keywords_for_api(self, keywords: List[str]) -> List[str]: - return [f'"{k.strip("\"")}"' for k in keywords if k and k.strip()] + return ['"' + k.strip('"') + '"' for k in keywords if k and k.strip()] async def search_keyword_decisions( self,