fastify-static
Advanced tools
Comparing version 4.4.2 to 4.5.0
@@ -432,7 +432,7 @@ 'use strict' | ||
// Adapted from https://github.com/fastify/fastify-compress/blob/fa5c12a5394285c86d9f438cb39ff44f3d5cde79/index.js#L442 | ||
// Adapted from https://github.com/fastify/fastify-compress/blob/665e132fa63d3bf05ad37df3c20346660b71a857/index.js#L451 | ||
function getEncodingHeader (headers, checked) { | ||
if (!('accept-encoding' in headers)) return | ||
const header = headers['accept-encoding'].toLowerCase().replace('*', 'gzip') | ||
const header = headers['accept-encoding'].toLowerCase().replace(/\*/g, 'gzip') | ||
return encodingNegotiator.negotiate( | ||
@@ -439,0 +439,0 @@ header, |
{ | ||
"name": "fastify-static", | ||
"version": "4.4.2", | ||
"version": "4.5.0", | ||
"description": "Plugin for serving static files as fast as possible.", | ||
@@ -56,3 +56,3 @@ "main": "index.js", | ||
"tap": "^15.0.0", | ||
"tsd": "^0.17.0", | ||
"tsd": "^0.18.0", | ||
"typescript": "^4.0.2" | ||
@@ -59,0 +59,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
352442
4421