diff --git a/cpp-httplib-0.18.3.tar.gz b/cpp-httplib-0.18.3.tar.gz deleted file mode 100644 index c4aebfb..0000000 --- a/cpp-httplib-0.18.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a0567bcd6c3fe5cef1b329b96245119047f876b49e06cc129a36a7a8dffe173e -size 1324253 diff --git a/cpp-httplib-0.18.6.tar.gz b/cpp-httplib-0.18.6.tar.gz new file mode 100644 index 0000000..803f832 --- /dev/null +++ b/cpp-httplib-0.18.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8900747bba3dda8007f1876175be699036e09e4a25ceeab51196d9365bf1993a +size 1326428 diff --git a/cpp-httplib-test-issue2004-online.patch b/cpp-httplib-test-issue2004-online.patch new file mode 100644 index 0000000..d649a6e --- /dev/null +++ b/cpp-httplib-test-issue2004-online.patch @@ -0,0 +1,13 @@ +Index: cpp-httplib-0.18.6/test/test.cc +=================================================================== +--- cpp-httplib-0.18.6.orig/test/test.cc ++++ cpp-httplib-0.18.6/test/test.cc +@@ -6189,7 +6189,7 @@ TEST(SSLClientTest, WildcardHostNameMatc + ASSERT_EQ(StatusCode::OK_200, res->status); + } + +-TEST(SSLClientTest, Issue2004) { ++TEST(SSLClientTest, Issue2004_Online) { + Client client("https://google.com"); + client.set_follow_location(true); + diff --git a/cpp-httplib.changes b/cpp-httplib.changes index 6311ac7..e564359 100644 --- a/cpp-httplib.changes +++ b/cpp-httplib.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Thu Feb 6 08:51:25 UTC 2025 - pgajdos@suse.com + +- version update to 0.18.6 + * Resolve #2033 + * Port/Address re-use #2011 + * Invalid Content-Length values should be rejected #2014 + * Feature request: ability to check if the connection is still alive #2017 + * Changed to use non-blocking socket in is_ssl_peer_could_be_closed (258992a) + * Treat out-of-range last_pos as the end of the content #2009 + * fix:set_file_content with range request return 416. #2010 + * Fix HTTP Response Splitting Vulnerability (9c36aae) +- added patches + fix https://github.com/yhirose/cpp-httplib/issues/2042 + + cpp-httplib-test-issue2004-online.patch + ------------------------------------------------------------------- Mon Jan 20 09:51:09 UTC 2025 - Pedro Monreal diff --git a/cpp-httplib.spec b/cpp-httplib.spec index 3c36442..7f79219 100644 --- a/cpp-httplib.spec +++ b/cpp-httplib.spec @@ -19,13 +19,15 @@ %define sover 0.18 %define libver 0_18 Name: cpp-httplib -Version: 0.18.3 +Version: 0.18.6 Release: 0 Summary: A C++11 HTTP/HTTPS server and client library License: MIT URL: https://github.com/yhirose/cpp-httplib Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: %{name}.pc +# https://github.com/yhirose/cpp-httplib/issues/2042 +Patch0: cpp-httplib-test-issue2004-online.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig(gtest)