Skip to content

Wrong method to httpRequestCustomizer.customize in HttpClientStreamableHttpTransport #458

@johnyannj

Description

@johnyannj

Please do a quick search on GitHub issues first, there might be already a duplicate issue for the one you are about to create.
If the bug is trivial, just go ahead and create the issue. Otherwise, please take a few moments and fill in the following sections:

Bug description

HttpClientStreamableHttpTransport.java

var builder = requestBuilder.uri(uri)
	.header("Accept", APPLICATION_JSON + ", " + TEXT_EVENT_STREAM)
	.header("Content-Type", APPLICATION_JSON)
	.header("Cache-Control", "no-cache")
	.header(HttpHeaders.PROTOCOL_VERSION, MCP_PROTOCOL_VERSION)
	.POST(HttpRequest.BodyPublishers.ofString(jsonBody));
return Mono.from(this.httpRequestCustomizer.customize(builder, "GET", uri, jsonBody));

Environment
version 0.11.0

Steps to reproduce
see code

Expected behavior

httpRequestCustomizer.customize(builder, "POST", uri, jsonBody));

Minimal Complete Reproducible example
..

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions