mcp: export jsonResponse field
Exporting StreamableHTTPOptions.JSONResponse is helpful for some users behind proxies that don't work well with text/event-stream. For #211 Co-authored-by: ccpro10 <co1797249167@gmail.com>
This commit is contained in:
parent
c76d991f05
commit
1c20560beb
1 changed files with 5 additions and 5 deletions
|
|
@ -84,7 +84,7 @@ func TestStreamableTransports(t *testing.T) {
|
|||
// Start an httptest.Server with the StreamableHTTPHandler, wrapped in a
|
||||
// cookie-checking middleware.
|
||||
handler := NewStreamableHTTPHandler(func(req *http.Request) *Server { return server }, &StreamableHTTPOptions{
|
||||
jsonResponse: useJSON,
|
||||
JSONResponse: useJSON,
|
||||
})
|
||||
|
||||
var (
|
||||
|
|
|
|||
Loading…
Reference in a new issue