src/de/uhilger/mediaz/api/ListFileHandler.java
@@ -17,6 +17,7 @@ */ package de.uhilger.mediaz.api; import com.sun.net.httpserver.Headers; import com.sun.net.httpserver.HttpExchange; import de.uhilger.mediaz.App; import de.uhilger.mediaz.Server; @@ -109,6 +110,8 @@ //Collections.sort(list); String json = jsonWithCustomType(list, "Medialiste"); logger.fine(json); Headers headers = e.getResponseHeaders(); headers.add("Content-Type", "application/json"); e.sendResponseHeaders(200, json.length()); OutputStream os = e.getResponseBody(); os.write(json.getBytes());