Skip to content

Commit

Permalink
fixed meson build, use mid value on zstd compression
Browse files Browse the repository at this point in the history
  • Loading branch information
EdgarModesto23 committed Oct 12, 2024
1 parent 6f237fb commit acb30d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/http.cc
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ namespace Pistache::Http

// Compress data using compresion_level = 5: https://facebook.github.io/zstd/zstd_manual.html#Chapter5
auto compress_size = ZSTD_compress((void*)compressedData.get(), estimated_size,
data, size, ZSTD_lazy2);
data, size, 11);
if (ZSTD_isError(compress_size))
{
throw std::runtime_error(
Expand Down
1 change: 1 addition & 0 deletions tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ gtest_main_dep = dependency('gtest', main: true, fallback: ['gtest', 'gtest_main
gmock_dep = dependency('gmock', version: '>=1.11.0', fallback: ['gtest', 'gmock_dep'])
cpp_httplib_dep = dependency('cpp-httplib', fallback: ['cpp-httplib', 'cpp_httplib_dep'])
brotli_dep = dependency('', required: false)
zstd_dep = dependency('', required: false)

subdir('helpers')

Expand Down

0 comments on commit acb30d4

Please sign in to comment.