Skip to content

Commit e1b1fd9

Browse files
Update plugins/communication_protocols/http/src/utcp_http/http_communication_protocol.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
1 parent bab379d commit e1b1fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/communication_protocols/http/src/utcp_http/http_communication_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ async def call_tool(self, caller, tool_name: str, tool_args: Dict[str, Any], too
311311
) as response:
312312
response.raise_for_status()
313313

314-
content_type = response.headers.get('Content-Type', '')
314+
content_type = response.headers.get('Content-Type', '').lower()
315315
if 'application/json' in content_type:
316316
return await response.json()
317317
return await response.text()

0 commit comments

Comments
 (0)