Skip to content

Commit 2bca8f4

Browse files
committed
StartAsync -> FlushAsync
1 parent da21e43 commit 2bca8f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ModelContextProtocol.AspNetCore/StreamableHttpHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ await WriteJsonRpcErrorAsync(context,
158158
// We should flush headers to indicate a 200 success quickly, because the initialization response
159159
// will be sent in response to a different POST request. It might be a while before we send a message
160160
// over this response body.
161-
await context.Response.StartAsync(cancellationToken);
161+
await context.Response.Body.FlushAsync(cancellationToken);
162162
await session.Transport.HandleGetRequestAsync(context.Response.Body, cancellationToken);
163163
}
164164
catch (OperationCanceledException) when (cancellationToken.IsCancellationRequested)

0 commit comments

Comments
 (0)