Skip to content

Commit

Permalink
fix: Sort content types correctly. (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev authored Nov 5, 2024
1 parent f8b22bc commit ab18f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/org/jitsi/recorder/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fun Application.module() {
routing {
get("/metrics") {
val (metrics, contentType) = metrics.getMetrics(
parseHeaderValue(call.request.headers["Accept"]).sortedBy { it.quality }.map { it.value }
parseHeaderValue(call.request.headers["Accept"]).sortedByDescending { it.quality }.map { it.value }
)
call.respondText(metrics, contentType = ContentType.parse(contentType))
}
Expand Down

0 comments on commit ab18f82

Please sign in to comment.