1728 Commits

Author SHA1 Message Date
yhirose
d9638333bb Fix problem with MbedTLS 2026-01-14 23:26:14 -05:00
yhirose
222599c644 Revert "Add caching and build steps for Mbed TLS in CI workflow"
This reverts commit 81598276cb.
2026-01-13 21:59:30 -05:00
yhirose
81598276cb Add caching and build steps for Mbed TLS in CI workflow 2026-01-13 21:52:52 -05:00
yhirose
164a6d97e4 Revert "Enhance Mbed TLS support and add guidance documentation"
This reverts commit 47660e73d8.
2026-01-13 21:45:35 -05:00
yhirose
47660e73d8 Enhance Mbed TLS support and add guidance documentation 2026-01-13 21:26:46 -05:00
yhirose
57ae35db5f Add justfile 2026-01-13 00:44:03 -05:00
yhirose
1e7d2d1c48 Fix problem on Mac. (Use mbedtls@3) 2026-01-13 00:24:29 -05:00
yhirose
f2fd514848 Debug 2026-01-13 00:04:27 -05:00
yhirose
9d8186b429 Debug 2026-01-13 00:01:52 -05:00
yhirose
f8541bf656 Debug 2026-01-12 23:59:15 -05:00
yhirose
55f85d466a Debug 2026-01-12 23:57:23 -05:00
yhirose
b351581e0f Debug 2026-01-12 23:28:59 -05:00
yhirose
a31ba81cfe Debug 2026-01-12 23:15:08 -05:00
yhirose
10f7d43703 Debug 2026-01-12 23:09:03 -05:00
yhirose
1c97565d9e Debug 2026-01-12 23:05:21 -05:00
yhirose
f11d941c9a Fix problems on CI 2026-01-12 22:58:03 -05:00
yhirose
6c73e82fbb Fix problems on CI 2026-01-12 22:28:58 -05:00
yhirose
d1a75551af Fix problems in CI 2026-01-12 22:05:15 -05:00
yhirose
3b67cb19eb Phase 6 and 7 2026-01-12 21:48:22 -05:00
yhirose
369b93613e Phase 5 2026-01-12 21:03:12 -05:00
yhirose
4045faffeb Phase 3 and 4 2026-01-12 17:15:38 -05:00
yhirose
804fa20782 Phase 2 2026-01-12 17:15:38 -05:00
yhirose
595594bea4 Phase 1 2026-01-12 17:15:38 -05:00
yhirose
f7e3bf10a2 Code refactoring for TLS 2026-01-12 17:15:38 -05:00
yhirose
cea018f2cd Fix #2324 2026-01-11 21:23:15 -05:00
yhirose
1111219f17 Fix #2324 2026-01-10 21:05:30 -05:00
yhirose
a7e1d14b15 Fix warning on Windows 2026-01-10 19:23:35 -05:00
yhirose
6eff49e1fb Problem with CI test on Windows without OpenSSL (#2323)
* Fix problem with 'windows without SSL`

* Fix payload limit enforcement for requests without Content-Length on Windows

- Enable MSG_PEEK on Windows (non-SSL builds) to detect payloads without Content-Length
- Only use MSG_PEEK when payload_max_length is set to a finite value to avoid blocking
- Use read_content_without_length for actual size checking to support any payload limit
- Set 413 Payload Too Large status before rejecting oversized requests

This fixes three test cases on Windows:
- RequestWithoutContentLengthOrTransferEncoding (no payload limit)
- NoContentLengthPayloadLimit (8-byte limit)
- NoContentLengthExceeds10MB (10MB limit)

* clang-format
2026-01-10 19:23:24 -05:00
yhirose
bd95e67c23 Release v0.30.1 v0.30.1 2026-01-09 21:35:03 -05:00
yhirose
2e2e47bab1 Merge commit from fork
* Ensure payload_max_length_ is respected for compressed payloads

* Fix Denial of service (DOS) using zip bomb

---------

Co-authored-by: Hritik Vijay <hey@hritik.sh>
2026-01-09 21:09:07 -05:00
seragh
59905c7f0d Prevent redefinition of ssize_t (#2319)
On Windows cpp-httplib defines ssize_t, therefore applications needing
to define ssize_t for their own needs or are using libraries that do
require a means to avoid a possible incompatible redefinition.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2026-01-05 20:03:18 -05:00
yhirose
8d03ef1615 Fix #2318 on macOS 2026-01-02 22:28:15 -05:00
yhirose
23a1d79a66 Fix #2318 2026-01-02 20:45:01 -05:00
yhirose
781c55f120 Release v0.30.0 v0.30.0 2025-12-31 22:19:05 -05:00
yhirose
40f7985e02 Update copyright year 2025-12-31 22:18:11 -05:00
PerseoGI
f85f30a637 Apple frameworks: match CoreFoundation and CFNetwork linkage (#2317)
* Apple frameworks: match linkage with CoreFoundation and CFNetwork with actual code

* Fix appleframeworks in Meson code
2025-12-31 12:49:59 -05:00
yhirose
6da7f0c61c Fix port reuse problem 2025-12-31 00:34:15 -05:00
yhirose
2ba0e7a797 Fix build error 2025-12-30 19:46:21 -05:00
yhirose
ded82448aa clang-format 2025-12-30 17:34:52 -05:00
yhirose
98048a033a Merge commit from fork 2025-12-30 17:32:42 -05:00
yhirose
7ae794a6bf Fix #2315 2025-12-26 16:17:43 -05:00
yhirose
385adefb11 Use HOST and PORT in test.cc 2025-12-26 00:24:19 -05:00
yhirose
b7c2f04318 Fix potential arithmatic overflow problem 2025-12-25 22:19:37 -05:00
yhirose
d23cf77cd0 Resolve #2313 2025-12-23 20:10:59 -05:00
yhirose
5304464a53 Release v0.29.0 v0.29.0 2025-12-23 00:03:49 -05:00
yhirose
db98efee5a Fix problem with Proxy test 2025-12-22 23:10:24 -05:00
yhirose
cdf0d33258 Fix #2301 2025-12-22 22:37:56 -05:00
Aaron Gokaslan
25688258ad Add another missing std::move for _base_dirs vector (#2314) 2025-12-22 20:43:46 -05:00
Aaron Gokaslan
f0990ca96d Use std::move for request redirection (#2311)
Prevents an additional copy
2025-12-17 12:04:37 -05:00
Aaron Gokaslan
0461cb770c Avoid unncessary copying of request and response objects (#2310) 2025-12-17 12:04:17 -05:00