Skip to content

Commit ed6d4a9

Browse files
committed
MCP streamablehttp accept header seprated by comma
1 parent 30b20ad commit ed6d4a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp/runtime/src/main/java/io/quarkiverse/langchain4j/mcp/runtime/http/QuarkusStreamableHttpMcpTransport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private Uni<JsonNode> execute(McpClientMessage request, Long id) {
113113
}
114114
RequestOptions options = new RequestOptions()
115115
.setAbsoluteURI(url)
116-
.addHeader("Accept", "application/json; text/event-stream")
116+
.addHeader("Accept", "application/json,text/event-stream")
117117
.setMethod(HttpMethod.POST);
118118
if (mcpSessionId.get() != null) {
119119
options.addHeader("Mcp-Session-Id", mcpSessionId.get());

0 commit comments

Comments
 (0)