tokers / zstd-nginx-module

Nginx modules for the Zstandard compression
BSD 2-Clause "Simplified" License
196 stars 23 forks source link

fix: avoid using deprecated ZSTD_initCStream_usingCDict if zstd version >= 1.5.0 #28

Closed tokers closed 1 year ago

tokers commented 1 year ago

The function ZSTD_initCStream_usingCDict was deprecated since zstd 1.5.0. In such a case, let's use ZSTD_CCtx_reset and ZSTD_CCtx_refCDict instead.

This PR fixed the issue https://github.com/tokers/zstd-nginx-module/pull/28.

SuperSandro2000 commented 1 year ago

the warning is no longer displayed with this commit