From 48b36c77bed8f07ee170aa97450ba19b5986fb47 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Thu, 15 Jul 2021 14:27:44 -0400 Subject: setting a default for ctype --- lib/serve.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/serve.js') diff --git a/lib/serve.js b/lib/serve.js index da052bb..bebe3c7 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -47,6 +47,7 @@ function ctype(name) { case 'json': return 'application/json' case 'ico': return 'image/x-icon' } + return 'text/html' } function encodeDispositionFilename(fname) { -- cgit v1.2.3