Use getRawQuery to prevent double decoding the query

Fixes #1682
This commit is contained in:
AsamK 2025-01-17 16:03:00 +01:00
parent 6acf16ef4e
commit a5d2e1ea23

View file

@ -156,7 +156,7 @@ public class HttpServerHandler implements AutoCloseable {
}
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);