src/de/uhilger/mediaz/api/AbstractHandler.java
@@ -17,6 +17,7 @@ */ package de.uhilger.mediaz.api; import com.sun.net.httpserver.Headers; import com.sun.net.httpserver.HttpExchange; import com.sun.net.httpserver.HttpHandler; import java.io.BufferedReader; @@ -89,7 +90,9 @@ } break; } logger.info(response); logger.fine(response); Headers headers = e.getResponseHeaders(); headers.add("Content-Type", "application/json"); e.sendResponseHeaders(getReturnCode(), response.length()); OutputStream os = e.getResponseBody(); os.write(response.getBytes());