We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 622302e commit c9b9c13Copy full SHA for c9b9c13
lib/core/index.js
@@ -55,7 +55,7 @@ function shouldCompressBrotli(req) {
55
56
function hasGzipId12(gzipped, cb) {
57
const stream = fs.createReadStream(gzipped, { start: 0, end: 1 });
58
- let buffer = Buffer('');
+ let buffer = Buffer.from('');
59
let hasBeenCalled = false;
60
61
stream.on('data', (chunk) => {
0 commit comments