Skip to content

Commit

Permalink
Springdoc breaks (Unexpected value: TRACE) when a spring-cloud-starte…
Browse files Browse the repository at this point in the history
…r-gateway-mvc universal gateway is configured. Fixes #2506
  • Loading branch information
bnasslahsen committed Mar 3, 2024
1 parent 737ecca commit 9aa78d0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ private RequestMethod getRequestMethod(HttpMethod httpMethod) {
case "PATCH" -> requestMethod = RequestMethod.PATCH;
case "HEAD" -> requestMethod = RequestMethod.HEAD;
case "OPTIONS" -> requestMethod = RequestMethod.OPTIONS;
case "TRACE" -> requestMethod = RequestMethod.TRACE;
default ->
throw new IllegalStateException("Unexpected value: " + httpMethod.name());
}
Expand Down

0 comments on commit 9aa78d0

Please sign in to comment.