Skip to content

Commit 9aa78d0

Browse files
committed
Springdoc breaks (Unexpected value: TRACE) when a spring-cloud-starter-gateway-mvc universal gateway is configured. Fixes #2506
1 parent 737ecca commit 9aa78d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/fn/RouterFunctionData.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ private RequestMethod getRequestMethod(HttpMethod httpMethod) {
285285
case "PATCH" -> requestMethod = RequestMethod.PATCH;
286286
case "HEAD" -> requestMethod = RequestMethod.HEAD;
287287
case "OPTIONS" -> requestMethod = RequestMethod.OPTIONS;
288+
case "TRACE" -> requestMethod = RequestMethod.TRACE;
288289
default ->
289290
throw new IllegalStateException("Unexpected value: " + httpMethod.name());
290291
}

0 commit comments

Comments
 (0)