Fixed StreamableHttpClientSessionTransport.cs for netstandard (#582)
Fixed exception 'The format of value 'application/json; charset=utf-8' is invalid
This commit is contained in:
parent
4411f1ce5e
commit
cd8e5d5f7f
1 changed files with 2 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ internal sealed partial class StreamableHttpClientSessionTransport : TransportBa
|
||||||
using var content = new StringContent(
|
using var content = new StringContent(
|
||||||
JsonSerializer.Serialize(message, McpJsonUtilities.JsonContext.Default.JsonRpcMessage),
|
JsonSerializer.Serialize(message, McpJsonUtilities.JsonContext.Default.JsonRpcMessage),
|
||||||
Encoding.UTF8,
|
Encoding.UTF8,
|
||||||
"application/json; charset=utf-8"
|
"application/json"
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -310,4 +310,4 @@ internal sealed partial class StreamableHttpClientSessionTransport : TransportBa
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue