Skip to content

Commit a826bd3

Browse files
fiechtordevgianlu
authored andcommitted
Hotfix ZeroconfServer not compiling due to type mismatch in params map (#129)
1 parent fe90a7d commit a826bd3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/src/main/java/xyz/gianlu/librespot/core/ZeroconfServer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ private void handle(@NotNull Socket socket) throws IOException {
419419
Map<String, String> params = new HashMap<>(pairs.length);
420420
for (String pair : pairs) {
421421
String[] split = Utils.split(pair, '=');
422-
params.put(URLDecoder.decode(split[0], StandardCharsets.UTF_8), URLDecoder.decode(split[1], StandardCharsets.UTF_8));
422+
params.put(URLDecoder.decode(split[0], StandardCharsets.UTF_8.name()),
423+
URLDecoder.decode(split[1], StandardCharsets.UTF_8.name()));
423424
}
424425

425426
String action = params.get("action");

0 commit comments

Comments
 (0)