Skip to content

Commit 8b2cbac

Browse files
committed
forward headers to old transport
1 parent e4b7f8d commit 8b2cbac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp/client/streamable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async def streamable_client(
2929
Client transport for streamable HTTP, with fallback to SSE.
3030
"""
3131
if await _is_old_sse_server(url, timeout):
32-
async with sse_client(url) as (read_stream, write_stream):
32+
async with sse_client(url, headers=headers) as (read_stream, write_stream):
3333
yield read_stream, write_stream
3434
return
3535

0 commit comments

Comments
 (0)