Skip to content

Replace body for second call and OAuth flow #590

@jba

Description

@jba

HTTPTransport.RoundTrip needs to copy the body before it makes a second request. See the comment on line 100 of client.go at https://github.com/modelcontextprotocol/go-sdk/pull/544/files.

Also, add a test that would have found this bug. Look at how docker/cagent#547 does testing.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions