From 79f7cb4c9a807e200c9bada9beae4487bd958487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0est=C3=A1k=20V=C3=ADt?= Date: Wed, 1 Mar 2017 15:49:22 +0100 Subject: [PATCH] Use text/plain for hygiene. --- app/controllers/Statistics.scala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/controllers/Statistics.scala b/app/controllers/Statistics.scala index c8ca079..d75a081 100644 --- a/app/controllers/Statistics.scala +++ b/app/controllers/Statistics.scala @@ -279,8 +279,11 @@ class Statistics @Inject()( resultsFuture flatMap { allResults => println(selectorOption) select(allResults, selectorOption).fold(Future.successful(notFound())) { selection => - val dep = selection.result.groupedDependenciesByHashes(depId) - Future.successful(Ok(views.html.dependencyDetailsInner(depPrefix = depPrefix, dep = dep, selectorOption = selectorOption))) + Future.successful(Ok(views.html.dependencyDetailsInner( + depPrefix = depPrefix, + dep = selection.result.groupedDependenciesByHashes(depId), + selectorOption = selectorOption) + ).withHeaders("Content-type" -> "text/plain; charset=utf-8")) } } }