mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 13:49:17 +02:00
http-send-file default mime type should be application/octet-stream
This commit is contained in:
parent
566d9a47cf
commit
4d0ae090b7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue