From 4d0ae090b7d07fc462b56b26d5175989c3e38133 Mon Sep 17 00:00:00 2001 From: Alex Shinn Date: Sun, 12 Jun 2022 10:02:38 +0900 Subject: [PATCH] http-send-file default mime type should be application/octet-stream --- lib/chibi/net/http-server.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chibi/net/http-server.scm b/lib/chibi/net/http-server.scm index a1bb3f4e..78b9f5d4 100644 --- a/lib/chibi/net/http-server.scm +++ b/lib/chibi/net/http-server.scm @@ -146,7 +146,7 @@ (cond ((mime-type-from-extension (path-extension path)) => (lambda (type) `((Content-Type . ,type)))) - (else '())))) + (else '((Content-Type . "application/octet-stream")))))) (servlet-respond request 200 "OK" headers) (send-file path (request-out request)))) (else