You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9903b56
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: conformance-tests/server-servlet/src/main/java/io/modelcontextprotocol/conformance/server/ConformanceServlet.java
Copy file name to clipboardExpand all lines: mcp-core/src/main/java/io/modelcontextprotocol/server/transport/HttpServletSseServerTransportProvider.java
+62-5Lines changed: 62 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2024 - 2024 the original author or authors.
2
+
* Copyright 2024 - 2026 the original author or authors.
3
3
*/
4
4
5
5
packageio.modelcontextprotocol.server.transport;
@@ -8,6 +8,9 @@
8
8
importjava.io.IOException;
9
9
importjava.io.PrintWriter;
10
10
importjava.time.Duration;
11
+
importjava.util.Collections;
12
+
importjava.util.Enumeration;
13
+
importjava.util.HashMap;
11
14
importjava.util.List;
12
15
importjava.util.Map;
13
16
importjava.util.UUID;
@@ -142,6 +145,11 @@ public class HttpServletSseServerTransportProvider extends HttpServlet implement
142
145
*/
143
146
privateKeepAliveSchedulerkeepAliveScheduler;
144
147
148
+
/**
149
+
* Security validator for validating HTTP requests.
0 commit comments