aboutsummaryrefslogtreecommitdiff
path: root/tools/gui/src/JettyServer.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gui/src/JettyServer.scala')
-rw-r--r--tools/gui/src/JettyServer.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gui/src/JettyServer.scala b/tools/gui/src/JettyServer.scala
index d6024c2..a64c6bc 100644
--- a/tools/gui/src/JettyServer.scala
+++ b/tools/gui/src/JettyServer.scala
@@ -27,7 +27,7 @@ abstract class JettyServer(port: Int, staticFilesUrl: String) {
response.setContentType("application/json")
response.setCharacterEncoding("UTF-8")
- route(request.getMethod, target, request.getParameter) match {
+ route(request.getMethod, target, request.getParameter, response.setContentType) match {
case Success(result) =>
response.getWriter.write(result)
case Failure(e: MalformedURLException) =>
@@ -63,5 +63,5 @@ abstract class JettyServer(port: Int, staticFilesUrl: String) {
println("UI server stopped.")
}
- def route(method: String, path: String, param: String => String): Try[String]
+ def route(method: String, path: String, param: String => String, setContentType: String => Unit): Try[String]
}