Merge pull request #577 from katterjohn/fix-mime-type

(chibi net server-util): file-mime-type: fix load-mime-types call
This commit is contained in:
Alex Shinn 2019-10-06 08:20:45 +08:00 committed by GitHub
commit e3935695a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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