[mod_deflate] use ZSTD_c_strategy w/ compress lvl
map deflate.compression-level to ZSTD_c_strategy as the current
enum for ZSTD_strategy is in the range 1 .. 9, which matches the
gzip compression level 1 .. 9 range
x-ref:
"ModDeflate questions (possibly some feature requests too)"
@@ -989,7 +989,7 @@ static int stream_zstd_init(handler_ctx *hctx) {
if (p->conf.compression_level >= 0) { /* -1 is lighttpd default for "unset" */
int level = p->conf.compression_level;
#if ZSTD_VERSION_NUMBER >= 10000+400+0 /* v1.4.0 */
- ZSTD_CCtx_setParameter(cctx, ZSTD_c_compressionLevel, level);
+ ZSTD_CCtx_setParameter(cctx, ZSTD_c_strategy, level);
#else
ZSTD_initCStream(cctx, level);
#endif
