http-send-file default mime type should be application/octet-stream

This commit is contained in:
Alex Shinn 2022-06-12 10:02:38 +09:00
parent 566d9a47cf
commit 4d0ae090b7

View file

@ -146,7 +146,7 @@
(cond (cond
((mime-type-from-extension (path-extension path)) ((mime-type-from-extension (path-extension path))
=> (lambda (type) `((Content-Type . ,type)))) => (lambda (type) `((Content-Type . ,type))))
(else '())))) (else '((Content-Type . "application/octet-stream"))))))
(servlet-respond request 200 "OK" headers) (servlet-respond request 200 "OK" headers)
(send-file path (request-out request)))) (send-file path (request-out request))))
(else (else