Skip to content

Commit 42ba0ff

Browse files
committed
fix compile
1 parent cc540bb commit 42ba0ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/transport/streamable_http.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func WithOAuth(config OAuthConfig) StreamableHTTPCOption {
8181
// (https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#resumability-and-redelivery)
8282
// - server -> client request
8383
type StreamableHTTP struct {
84-
baseURL *url.URL
84+
serverURL *url.URL
8585
httpClient *http.Client
8686
headers map[string]string
8787
headerFunc HTTPHeaderFunc
@@ -109,7 +109,7 @@ func NewStreamableHTTP(serverURL string, options ...StreamableHTTPCOption) (*Str
109109
}
110110

111111
smc := &StreamableHTTP{
112-
baseURL: parsedURL,
112+
serverURL: parsedURL,
113113
httpClient: &http.Client{},
114114
headers: make(map[string]string),
115115
closed: make(chan struct{}),
@@ -301,7 +301,7 @@ func (c *StreamableHTTP) sendHTTP(
301301
ctx = newCtx
302302

303303
// Create HTTP request
304-
req, err := http.NewRequestWithContext(ctx, method, c.baseURL.String(), body)
304+
req, err := http.NewRequestWithContext(ctx, method, c.serverURL.String(), body)
305305
if err != nil {
306306
return nil, fmt.Errorf("failed to create request: %w", err)
307307
}

0 commit comments

Comments
 (0)