Skip to content

Commit 4d779e1

Browse files
authored
Fix flakey test in HttpClientStreamableHttpTransportErrorHandlingTest (#535)
1 parent 02b8c4b commit 4d779e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp/src/test/java/io/modelcontextprotocol/client/transport/HttpClientStreamableHttpTransportErrorHandlingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void startServer() throws IOException {
6363
if ("DELETE".equals(httpExchange.getRequestMethod())) {
6464
httpExchange.sendResponseHeaders(200, 0);
6565
}
66-
else {
66+
else if ("POST".equals(httpExchange.getRequestMethod())) {
6767
// Capture session ID from request if present
6868
String requestSessionId = httpExchange.getRequestHeaders().getFirst(HttpHeaders.MCP_SESSION_ID);
6969
lastReceivedSessionId.set(requestSessionId);

0 commit comments

Comments
 (0)