nit: apply requestBuilder headers when rpc messages (#96)

fixes: #63

Co-authored-by: Leonid Stashevsky <e5l@users.noreply.github.com>
This commit is contained in:
Vaibhav Raj 2025-05-13 19:06:41 +05:30 • committed by GitHub
commit 782b525f27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -113,6 +113,7 @@ public class SseClientTransport(
try {
val response = client.post(endpoint.getCompleted()) {
requestBuilder()
headers.append(HttpHeaders.ContentType, ContentType.Application.Json)
setBody(McpJson.encodeToString(message))
}