@fastify/static
Advanced tools
Comparing version 6.10.1 to 6.10.2
@@ -15,2 +15,4 @@ 'use strict' | ||
send.mime.default_type = 'application/octet-stream' | ||
const dirList = require('./lib/dirList') | ||
@@ -480,3 +482,3 @@ | ||
function getContentType (path) { | ||
const type = send.mime.getType(path) | ||
const type = send.mime.getType(path) || send.mime.default_type | ||
@@ -483,0 +485,0 @@ if (!send.isUtf8MimeType(type)) { |
{ | ||
"name": "@fastify/static", | ||
"version": "6.10.1", | ||
"version": "6.10.2", | ||
"description": "Plugin for serving static files as fast as possible.", | ||
@@ -43,3 +43,3 @@ "main": "index.js", | ||
"@fastify/pre-commit": "^2.0.2", | ||
"@types/node": "^18.0.0", | ||
"@types/node": "^20.1.0", | ||
"@typescript-eslint/eslint-plugin": "^2.29.0", | ||
@@ -46,0 +46,0 @@ "@typescript-eslint/parser": "^2.29.0", |
Sorry, the diff of this file is not supported yet
449396
64
5204