aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2024-06-24 09:59:37 +0100
committerChristopher Baines <mail@cbaines.net>2024-06-24 09:59:37 +0100
commitd7103eccc9c75ca3e7dcf67a72002276094b8fd4 (patch)
treef502c81f0edf9a37b1fb9e86050e404d01e0cb3f
parenteeb026b654939c3f7457f0a355757f17745a16ab (diff)
downloaddata-service-d7103eccc9c75ca3e7dcf67a72002276094b8fd4.tar
data-service-d7103eccc9c75ca3e7dcf67a72002276094b8fd4.tar.gz
Fix the arguments to most-appropriate-mime-type
-rw-r--r--guix-data-service/web/controller.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/guix-data-service/web/controller.scm b/guix-data-service/web/controller.scm
index a20e761..5d0a651 100644
--- a/guix-data-service/web/controller.scm
+++ b/guix-data-service/web/controller.scm
@@ -719,8 +719,8 @@
#:on-error 'backtrace
#:post-error (lambda args
(case (most-appropriate-mime-type
- '(application/json text/html)
- mime-types)
+ mime-types
+ '(text/html application/json))
((application/json)
(render-json `((error . ,(if (%show-error-details)
(simple-format #f "~A" args)