cbaines pushed a commit to branch master
in repository data-service.
commit d7103eccc9c75ca3e7dcf67a72002276094b8fd4
Author: Christopher Baines <[email protected]>
AuthorDate: Mon Jun 24 09:59:37 2024 +0100
Fix the arguments to most-appropriate-mime-type
---
guix-data-service/web/controller.scm | 4 ++--
1 file 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)