Properly handle signing Key ID format

This commit is contained in:
Max Dor
2019-01-07 04:19:53 +01:00
parent 2aaa04062f
commit b257a0275f

View File

@@ -45,7 +45,7 @@ public class KeyGetHandler extends BasicHttpHandler {
@Override
public void handleRequest(HttpServerExchange exchange) {
String key = getQueryParameter(exchange, Key);
String[] v = key.split(":", 1);
String[] v = key.split(":", 2);
String keyType = v[0];
int keyId = Integer.parseInt(v[1]);