Skip to content

Commit dbd439e

Browse files
authored
Merge pull request modelcontextprotocol#406 from botengyao/format-issue
nit: fix the comment format in the streamableHTTP.ts
2 parents 465ba67 + 868fc7b commit dbd439e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/streamableHttp.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export class StreamableHTTPServerTransport implements Transport {
166166
}
167167

168168
// If an Mcp-Session-Id is returned by the server during initialization,
169-
// clients using the Streamable HTTP transport MUST include it
169+
// clients using the Streamable HTTP transport MUST include it
170170
// in the Mcp-Session-Id header on all of their subsequent HTTP requests.
171171
if (!this.validateSession(req, res)) {
172172
return;
@@ -180,7 +180,7 @@ export class StreamableHTTPServerTransport implements Transport {
180180
}
181181
}
182182

183-
// The server MUST either return Content-Type: text/event-stream in response to this HTTP GET,
183+
// The server MUST either return Content-Type: text/event-stream in response to this HTTP GET,
184184
// or else return HTTP 405 Method Not Allowed
185185
const headers: Record<string, string> = {
186186
"Content-Type": "text/event-stream",

0 commit comments

Comments
 (0)