mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
(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:
parent
3749d29883
commit
9bbf48d084
1 changed files with 3 additions and 3 deletions
|
@ -75,9 +75,9 @@
|
|||
(if (not ext-types)
|
||||
(let ((ht (make-hash-table eq?)))
|
||||
(cond
|
||||
((any file-exists? '("/etc/mime.types"
|
||||
"/etc/httpd/mime.types"
|
||||
"/etc/apache2/mime.types"))
|
||||
((find file-exists? '("/etc/mime.types"
|
||||
"/etc/httpd/mime.types"
|
||||
"/etc/apache2/mime.types"))
|
||||
=> (lambda (file) (load-mime-types ht file))))
|
||||
(set! ext-types ht)))
|
||||
(let* ((ext (path-extension file))
|
||||
|
|
Loading…
Add table
Reference in a new issue