Skip to content

Commit

Permalink
Use getRawQuery to prevent double decoding the query
Browse files Browse the repository at this point in the history
Fixes #1682
  • Loading branch information
AsamK committed Jan 17, 2025
1 parent 6acf16e commit a5d2e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/asamk/signal/http/HttpServerHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private void handleEventsEndpoint(HttpExchange httpExchange) throws IOException
}

try {
final var queryString = httpExchange.getRequestURI().getQuery();
final var queryString = httpExchange.getRequestURI().getRawQuery();
final var query = queryString == null ? Map.<String, String>of() : Util.getQueryMap(queryString);

List<Manager> managers = getManagerFromQuery(query);
Expand Down

0 comments on commit a5d2e1e

Please sign in to comment.