Skip to content

Commit 012fe6d

Browse files
author
王录祥
committed
add request header
1 parent 104e852 commit 012fe6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/server_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,8 +1374,8 @@ func TestMCPServer_WithRecover(t *testing.T) {
13741374
mcp.NewTool("panic-tool"),
13751375
panicToolHandler,
13761376
)
1377-
1378-
response := server.HandleMessage(context.Background(), []byte(`{
1377+
header := map[string]string{"Authorization": "Bearer test"}
1378+
response := server.HandleMessage(context.Background(), header, []byte(`{
13791379
"jsonrpc": "2.0",
13801380
"id": 4,
13811381
"method": "tools/call",

0 commit comments

Comments
 (0)