8
0
forked from pool/cpp-httplib

Accepting request 1243599 from devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/1243599
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpp-httplib?expand=0&rev=8
This commit is contained in:
2025-02-07 21:46:53 +00:00
committed by Git OBS Bridge
5 changed files with 35 additions and 4 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a0567bcd6c3fe5cef1b329b96245119047f876b49e06cc129a36a7a8dffe173e
size 1324253

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8900747bba3dda8007f1876175be699036e09e4a25ceeab51196d9365bf1993a
size 1326428

View File

@@ -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);

View File

@@ -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 <pmonreal@suse.com>

View File

@@ -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)