diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-07-15 14:27:44 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-07-15 14:27:44 -0400 |
commit | 48b36c77bed8f07ee170aa97450ba19b5986fb47 (patch) | |
tree | 053248bcb94ae1b6a727709a8e0b29f2dfbb4da4 /lib | |
parent | 6b22ef3b80199fde2908fe0664868960363c9fe6 (diff) | |
download | patchfoo-48b36c77bed8f07ee170aa97450ba19b5986fb47.tar.gz patchfoo-48b36c77bed8f07ee170aa97450ba19b5986fb47.zip |
setting a default for ctype
Diffstat (limited to 'lib')
-rw-r--r-- | lib/serve.js | 1 |
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) { |