Skip to content

Commit a056780

Browse files
author
polaon
committed
Fix error response.
1 parent 784cd9c commit a056780

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/server/streamable_http_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ bool StreamableHttpServerWrapper::start()
357357

358358
fastmcpp::Json error_response = {
359359
{"error", "Method Not Allowed"},
360-
{"message", "The MCP endpoint only supports POST and DELETE requests."}};
360+
{"message", "The MCP endpoint only supports POST, DELETE, and OPTIONS requests."}};
361361

362362
res.set_content(error_response.dump(), "application/json");
363363
});

0 commit comments

Comments
 (0)