Write distributor status to response
package org.openqa.selenium.grid.distributor;
+import static java.nio.charset.StandardCharsets.UTF_8;
+
import com.google.common.collect.ImmutableMap;
import org.openqa.selenium.grid.web.CommandHandler;
@@ -46,6 +48,7 @@ public void execute(HttpRequest req, HttpResponse resp) throws IOException {
"ready", status.hasCapacity(),
"message", status.hasCapacity() ? "Ready" : "No free slots available",
"node", status));
-;
+
+ resp.setContent(json.toJson(report).getBytes(UTF_8));
}
}
