mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-01-15 16:23:52 +01:00
Use text/plain for hygiene.
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user