Compare commits

38 Commits

Author SHA256 Message Date
d6a441f337 Accepting request 1298940 from devel:libraries:c_c++
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1298940
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpp-httplib?expand=0&rev=13
2025-08-13 14:22:56 +00:00
074920ce45 Accepting request 1295278 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1295278
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpp-httplib?expand=0&rev=12
2025-07-25 15:03:46 +00:00
4e4cc18e88 - version update to 0.23.1
* Fix issue with HTTP handling #2021
  * Fix specific bug addressed in this release #2111
  * Resolve issue #366
  * Resolve issue #1264
  * Fix getaddrinfo stalling issue when network is down
  * Fix proxy-related issues
  * Fix #1656: Improve logging before compression #1656
  * Add URL encoding helpers for user input in GET requests #2170
  * Add SSL error access functionality #2169
  * Cleaner API: API improvements #2166
  * Add POST with content receiver feature #cfb56c0
  * Add Params support for PUT/DELETE methods #b2bf172
  * Complete removal of Windows 8 or lower support #2177
  * Removal of 32-bit environment support (64-bit only) #2173
  * Improve form field access methods #2171

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=36
2025-07-23 10:53:53 +00:00
dc2a97a05f Accepting request 1288500 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1288500
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpp-httplib?expand=0&rev=11
2025-06-26 12:05:30 +00:00
da571aaa0e - version update to 0.22.0
* Fix ranges that are not in the form 0-n do not work #2157 
  * Fix windows req/res very slow compared to Linux #1777 
  * Add CPPHTTPLIB_HEADER_MAX_COUNT
  * Windows ::isdigit compilation error #2135
  * Specify version in meson.build #2139
  * Detect if afunix.h exists #2145
  * Feature request: let the Request& know which route matched #2101
  * Feature/multipart headers #2152

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=34
2025-06-25 10:30:45 +00:00
a0de67286f Accepting request 1278526 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1278526
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpp-httplib?expand=0&rev=10
2025-05-23 12:29:02 +00:00
469f244f62 - Add dependency from cpp-httplib-devel to libzstd-devel
to workaround cmake wanting it in all cases unconditionally.

This should fix build failure for openSUSE:Factory/descent3.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=32
2025-05-20 07:48:48 +00:00
38eadfddc6 Accepting request 1276812 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1276812
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpp-httplib?expand=0&rev=9
2025-05-13 18:12:32 +00:00
ac75ac1979 - version update to 0.20.1
0.20.1 (CVE-2025-46728 [bsc#1242777])
  * Add AF_UNIX support on windows #2115
  * Support zstd also via pkg-config #2121
  * Fix #2113
  * Fix "Unbounded Memory Allocation in Chunked/No-Length Requests"
  0.20.0
  * server_certificate_verifier extended to reuse built-in verifier #2064
  * Assertion failed when destroying httplib::Client
  * #2068
  * Spaces incorrectly allowed in header field names #2096
  * build(meson): copy MountTest.MultibytesPathName files #2098
  * Remove SSLInit #2102
  * Add zstd support #2088
  * Question the behavior of method read_content_without_length #2109
  * Crash when calling std::exit while server running or client requests in flight #2097
  0.19.0
  * Global timeout feature (same as "--max-time" curl option) #2034
  * Fix check for URI length to prevent incorrect HTTP 414 errors
  0.18.7
  * Potential memory corruption in stream_line_reader #2028
- deleted patches
  - cpp-httplib-test-issue2004-online.patch (upstreamed)

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=30
2025-05-12 11:21:29 +00:00
d20b1c1a21 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
2025-02-07 21:46:53 +00:00
32f9caf302 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=28
2025-02-06 10:29:00 +00:00
625899f15d Accepting request 1239053 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1239053
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpp-httplib?expand=0&rev=7
2025-01-21 20:09:47 +00:00
94dbd2a452 - Update to 0.18.3:
* Bug fixes:
    - Regression: Client keep-alive subsequent requests very slow #1997
    - 304 Not Modified response stalls until timeout #1998
- Update to 0.18.2:
  * Bug fixes:
    - Fix the problem that CreateFile2 in mmap::open fails to... #1973
    - Default Accept-Encoding header for the client #1975
    - SSLClientReconnection fails on Windows #1980
    - delay in keep_alive due to sleep #1969
    - missing query pararm in httplib::Client::send #1985

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=26
2025-01-20 14:24:58 +00:00
4876e7e3bf Accepting request 1219557 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1219557
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpp-httplib?expand=0&rev=6
2024-10-31 15:08:36 +00:00
1df78ffd75 Fix building with openssl 3.2.x
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=24
2024-10-30 12:42:15 +00:00
8aa9e82f54 Accepting request 1204176 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1204176
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpp-httplib?expand=0&rev=5
2024-10-01 15:12:16 +00:00
cb90b6e91c Small specfile refactoring
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=22
2024-09-27 13:08:20 +00:00
8536137bbd - update to 0.18.0:
* httplib.h: support LibreSSL
  * Nice way to call "handle_file_request" from user code
  * How to diagnose the infamous read error 4
  * Made default server and client read/write timeout settings separately
  * Slow performance caused by get_remote_ip_and_port and get_local_ip_and_port
  * Provides a way to ignore host verify
  * add API support for verify certificate manually
- update to 0.17.3:
  * Accessing Directory
  * ‘constexpr’ error
  * Only match path params that span full path segment
  * Fix KeepAliveTest.SSLClientReconnectionPost problem
- update to 0.17.2:
  * Fix incorrect handling of Expect: 100-continue
  * Peformance improvement by removing tolower function call
- update to 0.17.1:
  * Header parser incorrectly accepts NUL and CR within header values
  * Fix problem with Abstract Namespace Unix Domain
  * Fix SIGINT problem in Docker image
- update to 0.17.0:
  * Changed CPPHTTPLIB_KEEPALIVE_MAX_COUNT to 100
  * Add Dockerfile for static file server
  * Breaking Change!: get_header_ methods on Request and Response now take…
  * Add sleep in handle_EINTR
  * Added set_ipv6_v6only method
  * impossible to shut down the server safely
  * Performance: reserve body to avoid frequent reallocations and copies
- update to 0.16.3:
  * Fixed set_connection_timeout() unexpected results

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=21
2024-09-27 12:29:03 +00:00
00133b801e Accepting request 1145507 from devel:libraries:c_c++
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1145507
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpp-httplib?expand=0&rev=4
2024-02-09 22:54:50 +00:00
8c7eb1658e Update to version 0.15.1:
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=19
2024-02-02 17:34:44 +00:00
bf29c9ce9c Accepting request 1089978 from devel:libraries:c_c++
bnc#123456 fixed.

OBS-URL: https://build.opensuse.org/request/show/1089978
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpp-httplib?expand=0&rev=3
2023-05-31 19:54:52 +00:00
0be02fb7e9 - Update to version 0.12.5:
* Add HTTPLIB_INSTALL CMake option (#1575)
  * Fix more CRLF injection problems
  * Don't loading system certs from Keychain on iOS (#1546)
  * Initialize sockaddr_un to fix valgrind uninitialised byte message. (#1547, #1547)
  * Using set_content_provider with length of 0 makes it infinitely loop (#1545)
  * How to check if server is running successfully in another thread? (#1548)
  * Fix leaked handle in create_socket (#1554)
  * Fix "Location" header url corrupted by percent-unescaping in redirect… (#1459)
  * Trailing headers not handled (#1486)
  * SSL access through a proxy causes SIGSEGV (#1533)
  * System certs support on macOS (#1474)
  * Add Request::get_file_values method (#1495)
  * Fix: assert socket_requests_are_from_thread_ std::this_thread::get_id() (#1498)
  * Fix: multipart Content-Type headers with both boundary and charset parameters (#1516)

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=17
2023-05-31 07:17:15 +00:00
873352e1b6 Accepting request 1066113 from devel:libraries:c_c++
- Update to version 0.12.0
- Drop headers-only flavor  (gh#yhirose/cpp-httplib#1491)
- Add examples to devel subpackage
- Enable tests

OBS-URL: https://build.opensuse.org/request/show/1066113
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpp-httplib?expand=0&rev=2
2023-02-16 15:56:58 +00:00
54d019a41e - Move examples to devel subpackage
- Drop headers-only flavor and remove aliases for pkg-config files
  (gh#yhirose/cpp-httplib#1491)

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=15
2023-02-16 07:09:30 +00:00
a52c3c7ac2 Update to version 0.12.0
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=14
2023-02-09 15:11:41 +00:00
89c65e36ef Fix cpp-httplib-headers build
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=13
2023-02-08 15:05:28 +00:00
9ee3fc246e - Switch to meson tests
- Add examples to headers package

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=12
2023-02-08 14:57:29 +00:00
0bd43622be - For an explicit choice when buildtime dependencies resolving
added an unique pkgconfig files aliases for both shipped library
  flavors: cpp-httplib-headers.pc and cpp-httplib-shared.pc
- Enable tests performing for compiled flavor

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=11
2023-02-07 15:29:28 +00:00
eb312d10a5 Accepting request 1060703 from devel:libraries:c_c++
Migrate from obscpio to classical tar.gz sources archive for properly debugsource package building

OBS-URL: https://build.opensuse.org/request/show/1060703
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpp-httplib?expand=0&rev=1
2023-01-25 16:42:49 +00:00
5443574828 Accepting request 1060702 from home:svalx
Migrate from obscpio to classical tar.gz sources archive for properly

OBS-URL: https://build.opensuse.org/request/show/1060702
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=9
2023-01-24 21:18:07 +00:00
adfc342378 Fix build for Leap
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=8
2023-01-17 11:55:42 +00:00
00f9b648e9 - Update to version 0.11.4:
* Release v0.11.4
  * add support for requests with both MultipartFormDataItems and Content Providers (#1454)
  * Add EINTR and EAGAIN judge for accept (#1438)
  * Updated unit test
  * std::condition_variable::notify_one/all() should be called after unlocking mutex (#1448)
  * Support LOCAL_ADDR and LOCAL_PORT header in client Request (#1450)
  * Fix #1442
  * Removed code for upsupported OpenSSL
- Combined multibuild cpp-httplib and cpp-httplib-headers packages
- Remove unneeded BuildRequires for cpp-httplib-headers

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=7
2023-01-17 10:25:12 +00:00
75ec71d709 - Move LICENSE file to the library package
- Drop cmake BuildRequires and linker additional "-s" flag

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=6
2023-01-16 17:56:45 +00:00
08096817ed OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=5 2023-01-16 13:35:44 +00:00
3321500b94 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=4 2023-01-02 18:25:51 +00:00
6cb665c50d OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=3 2023-01-02 18:23:05 +00:00
005e03b5d3 Accepting request 1046144 from home:jengelh:branches:devel:libraries:c_c++
- Redo description so it does not rely on monospace formatting.

OBS-URL: https://build.opensuse.org/request/show/1046144
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=2
2023-01-02 18:14:18 +00:00
455e15d2d5 Accepting request 1045357 from home:svalx
A C++11 cross platform HTTP/HTTPS library
Features:
- Built-in mappings
- Static file server
- Post routing handler
- Pre routing handler
- Receive content with a content receiver
- Bind a socket to multiple interfaces and any available port
NOTE: This is a multi-threaded 'blocking' HTTP library.
If you are looking for a 'non-blocking' library, this is not the one that you want.

OBS-URL: https://build.opensuse.org/request/show/1045357
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=1
2023-01-02 11:27:03 +00:00
9 changed files with 0 additions and 37 deletions

View File

@@ -1,3 +0,0 @@
<services>
<service name="download_files" mode="manual"/>
</services>

View File

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

View File

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

View File

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

View File

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

BIN
cpp-httplib-0.20.1.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
cpp-httplib-0.22.0.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

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

View File

@@ -1,13 +0,0 @@
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);