From 0b695a6d4216b921110648b1ce388040faca79c5 Mon Sep 17 00:00:00 2001 From: glinf Date: Tue, 12 Aug 2025 11:38:58 +0200 Subject: [PATCH 1/2] Consistent casing for default headers Accept and Content-Type --- src/mcp/client/streamable_http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mcp/client/streamable_http.py b/src/mcp/client/streamable_http.py index 63b09133f..28880e5c3 100644 --- a/src/mcp/client/streamable_http.py +++ b/src/mcp/client/streamable_http.py @@ -42,7 +42,7 @@ MCP_SESSION_ID = "mcp-session-id" MCP_PROTOCOL_VERSION = "mcp-protocol-version" LAST_EVENT_ID = "last-event-id" -CONTENT_TYPE = "content-type" +CONTENT_TYPE = "Content-Type" ACCEPT = "Accept" From dcf355b90c2663524edf1aeb048f937e3a7821dc Mon Sep 17 00:00:00 2001 From: glinf Date: Tue, 12 Aug 2025 11:50:09 +0200 Subject: [PATCH 2/2] Consistent casing should be lowercase --- src/mcp/client/streamable_http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mcp/client/streamable_http.py b/src/mcp/client/streamable_http.py index 28880e5c3..b749e210a 100644 --- a/src/mcp/client/streamable_http.py +++ b/src/mcp/client/streamable_http.py @@ -42,8 +42,8 @@ MCP_SESSION_ID = "mcp-session-id" MCP_PROTOCOL_VERSION = "mcp-protocol-version" LAST_EVENT_ID = "last-event-id" -CONTENT_TYPE = "Content-Type" -ACCEPT = "Accept" +CONTENT_TYPE = "content-type" +ACCEPT = "accept" JSON = "application/json"