aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-07-15 14:27:44 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-07-15 14:27:44 -0400
commit48b36c77bed8f07ee170aa97450ba19b5986fb47 (patch)
tree053248bcb94ae1b6a727709a8e0b29f2dfbb4da4 /lib
parent6b22ef3b80199fde2908fe0664868960363c9fe6 (diff)
downloadpatchfoo-48b36c77bed8f07ee170aa97450ba19b5986fb47.tar.gz
patchfoo-48b36c77bed8f07ee170aa97450ba19b5986fb47.zip
setting a default for ctype
Diffstat (limited to 'lib')
-rw-r--r--lib/serve.js1
1 files changed, 1 insertions, 0 deletions
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) {