Replacing deprecated symbols.

This commit is contained in:
mike12345567 2021-03-29 15:06:00 +01:00
parent 3f21a6ba6f
commit 76f330fc36
2 changed files with 4 additions and 4 deletions

View File

@ -13,10 +13,10 @@ router
compress({ compress({
threshold: 2048, threshold: 2048,
gzip: { gzip: {
flush: zlib.Z_SYNC_FLUSH, flush: zlib.constants.Z_SYNC_FLUSH,
}, },
deflate: { deflate: {
flush: zlib.Z_SYNC_FLUSH, flush: zlib.constants.Z_SYNC_FLUSH,
}, },
br: false, br: false,
}) })

View File

@ -10,10 +10,10 @@ router
compress({ compress({
threshold: 2048, threshold: 2048,
gzip: { gzip: {
flush: zlib.Z_SYNC_FLUSH, flush: zlib.constants.Z_SYNC_FLUSH,
}, },
deflate: { deflate: {
flush: zlib.Z_SYNC_FLUSH, flush: zlib.constants.Z_SYNC_FLUSH,
}, },
br: false, br: false,
}) })