Skip to content

Commit

Permalink
fixes #2300 handler needs to escape the double quotes in the status d…
Browse files Browse the repository at this point in the history
…escription (#2301)
  • Loading branch information
stevehu authored Jul 26, 2024
1 parent 08d3b7c commit 5e37573
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ default void setExchangeStatus(HttpServerExchange ex, Status status) {
status = statusWrapper == null ? status : statusWrapper.wrap(status, ex);
ex.setStatusCode(status.getStatusCode());
ex.getResponseHeaders().put(Headers.CONTENT_TYPE, ContentType.APPLICATION_JSON.value());
status.setDescription(status.getDescription().replaceAll("\\\\", "\\\\\\\\"));
status.setDescription(status.getDescription().replaceAll("\\\\", "\\\\\\\\").replaceAll("\"", "\\\\\""));

var elements = Thread.currentThread().getStackTrace();

Expand Down

0 comments on commit 5e37573

Please sign in to comment.