(chibi net server-util): file-mime-type: fix load-mime-types call

Use find instead of any so load-mime-types will get the filename
instead of #t when a mime.types file is found.  Otherwise an error
occurs in load-mime-types.
This commit is contained in:
Kris Katterjohn 2019-10-01 20:00:36 -05:00
parent 3749d29883
commit 9bbf48d084

View file

@ -75,7 +75,7 @@
(if (not ext-types)
(let ((ht (make-hash-table eq?)))
(cond
((any file-exists? '("/etc/mime.types"
((find file-exists? '("/etc/mime.types"
"/etc/httpd/mime.types"
"/etc/apache2/mime.types"))
=> (lambda (file) (load-mime-types ht file))))