Your message dated Thu, 16 Jul 2026 15:17:01 +0000
with message-id 
<zhbJIcf1w7cD6BSYI4DDyn7qQQo3ewVPsixOBYOKrq0GfAlXxVRYRGgsAD449dDcRz7Wogy1D0JCZD34f8XuVSHIeibmalNnoTgKr2wSrn8=@proton.me>
and subject line (No Subject)
has caused the Debian Bug report #1088193,
regarding cpp-httplib: FTBFS with zlib-ng
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1088193: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1088193
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cpp-httplib
Version: 0.16.3+ds-2
Severity: important
Tags: sid patch
control: affects -1 src:zlib-ng
User: [email protected]
Usertags: zlib-ng-ftbfs

cpp-httplib FTBFS if build against zlib-ng instead of zlib.

Sebastian
From: Sebastian Andrzej Siewior <[email protected]>
Date: Sun, 24 Nov 2024 20:06:15 +0100
Subject: [PATCH] test: Don't check for the exact size of compressed content.

The testsuite checks for the exact size of the compressed content. The
exact size can change if the zlib library is using a different strategy.
In thise case using zlib-ng results in a slightly larger content leading
to a failure in the test.

Check that the compressed content is less than 10MiB which is a tenth of
the orignal content and proves that compression works.

Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
---
 test/test.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test.cc b/test/test.cc
index 33ef30b4963b..1ea28e9fe123 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -4082,7 +4082,7 @@ TEST_F(ServerTest, PutLargeFileWithGzip2) {
   ASSERT_TRUE(res);
   EXPECT_EQ(StatusCode::OK_200, res->status);
   EXPECT_EQ(LARGE_DATA, res->body);
-  EXPECT_EQ(101942u, res.get_request_header_value_u64("Content-Length"));
+  EXPECT_TRUE(res.get_request_header_value_u64("Content-Length") < (10 * 1024 * 1024));
   EXPECT_EQ("gzip", res.get_request_header_value("Content-Encoding"));
 }
 
-- 
2.45.2


--- End Message ---
--- Begin Message ---
Version: 0.18.7-1

Fixed with 
https://github.com/yhirose/cpp-httplib/commit/1a7a7ed1c301f4ef08ced9c398d320a80f1468f1

--- End Message ---

Reply via email to