aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-05-11 23:02:54 +0100
committerChristopher Baines <mail@cbaines.net>2019-05-11 23:02:54 +0100
commitb15c8f706e5d31ed410fc285815f6c292b005a6e (patch)
tree5879f2854289ebd6d6389b97052d45371152853c
parent658a1a20b20760cbe11d6442e3a15c7f27ae568e (diff)
downloaddata-service-b15c8f706e5d31ed410fc285815f6c292b005a6e.tar
data-service-b15c8f706e5d31ed410fc285815f6c292b005a6e.tar.gz
Fix a request->path-components-and-mime-type bug
The first value should always be a list.
-rw-r--r--guix-data-service/web/util.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix-data-service/web/util.scm b/guix-data-service/web/util.scm
index 6e1abb7..3792389 100644
--- a/guix-data-service/web/util.scm
+++ b/guix-data-service/web/util.scm
@@ -58,7 +58,7 @@
(or (request-accept request)
(list 'text/html))))
((first-parts ... extension)
- (values (string-join first-parts ".")
+ (values (list (string-join first-parts "."))
(or (cons
(or (assoc-ref extensions-to-mime-types extension)
'text/html)