Remove duplicate header MCP_PROTOCOL_VERSION
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
parent
9949657ce3
commit
69cf41b12f
1 changed files with 1 additions and 4 deletions
|
|
@ -143,11 +143,8 @@ public class WebClientStreamableHttpTransport implements McpClientTransport {
|
||||||
Function<String, Publisher<Void>> onClose = sessionId -> sessionId == null ? Mono.empty()
|
Function<String, Publisher<Void>> onClose = sessionId -> sessionId == null ? Mono.empty()
|
||||||
: webClient.delete()
|
: webClient.delete()
|
||||||
.uri(this.endpoint)
|
.uri(this.endpoint)
|
||||||
|
.header(HttpHeaders.MCP_SESSION_ID, sessionId)
|
||||||
.header(HttpHeaders.PROTOCOL_VERSION, MCP_PROTOCOL_VERSION)
|
.header(HttpHeaders.PROTOCOL_VERSION, MCP_PROTOCOL_VERSION)
|
||||||
.headers(httpHeaders -> {
|
|
||||||
httpHeaders.add(HttpHeaders.MCP_SESSION_ID, sessionId);
|
|
||||||
httpHeaders.add(HttpHeaders.PROTOCOL_VERSION, MCP_PROTOCOL_VERSION);
|
|
||||||
})
|
|
||||||
.retrieve()
|
.retrieve()
|
||||||
.toBodilessEntity()
|
.toBodilessEntity()
|
||||||
.onErrorComplete(e -> {
|
.onErrorComplete(e -> {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue