in server/src/main/java/jetbrains/buildServer/torrent/web/ReactOverviewLinksController.java [41:55]
protected void writeResponse(@NotNull HttpServletResponse response,
Map<File, String> torrentsAndArtifacts,
@NotNull SBuild build) throws IOException {
JsonObject res = new JsonObject();
res.add("hrefs", getLinks(torrentsAndArtifacts, build));
res.add("icon", getIconObject());
res.addProperty("title", "Download torrent file for this artifact");
String jsonResult = myGson.toJson(res);
response.setContentType("application/json");
try (ServletOutputStream output = response.getOutputStream()) {
output.print(jsonResult);
}
}