Update StdioClientTransport.cs (#68)

This commit is contained in:
Clay Upton 2025-03-13 00:26:53 -05:00 • committed by GitHub
commit cdcf134e7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -210,6 +210,7 @@ public sealed class StdioClientTransport : TransportBase, IClientTransport
{ {
try try
{ {
line=line.Trim();//Fixes an error when the service prefixes nonprintable characters
var message = JsonSerializer.Deserialize<IJsonRpcMessage>(line, _jsonOptions); var message = JsonSerializer.Deserialize<IJsonRpcMessage>(line, _jsonOptions);
if (message != null) if (message != null)
{ {