Skip to content

Commit

Permalink
Fixing logical OR output of mime()
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Nov 11, 2019
1 parent bd759a3 commit 89703be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/mime.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ const {extname} = require("path"),
module.exports = (arg = "") => {
const ext = extname(arg);

return ext in extensions ? extensions[ext].type : "";
return ext in extensions ? extensions[ext].type : "application/octet-stream";
};
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tenso",
"description": "Tensō is an HTTP/HTTP2 REST API framework",
"version": "15.0.0",
"version": "15.0.1",
"homepage": "http://avoidwork.github.io/tenso",
"author": "Jason Mulligan <[email protected]>",
"repository": {
Expand Down

0 comments on commit 89703be

Please sign in to comment.