We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6435882 commit 8d3f236Copy full SHA for 8d3f236
client/sse_test.go
@@ -66,7 +66,7 @@ func TestSSEMCPClient(t *testing.T) {
66
67
// Initialize
68
testServer := server.NewTestServer(mcpServer,
69
- server.WithHTTPContextFunc(func(ctx context.Context, r *http.Request) context.Context {
+ server.WithSSEContextFunc(func(ctx context.Context, r *http.Request) context.Context {
70
ctx = context.WithValue(ctx, testHeaderKey, r.Header.Get("X-Test-Header"))
71
ctx = context.WithValue(ctx, testHeaderFuncKey, r.Header.Get("X-Test-Header-Func"))
72
return ctx
0 commit comments