yhirose
718d7d92b9
Fix problems in Unit tests
2026-02-16 06:22:18 -05:00
yhirose
464867a9ce
WebSocket and Dynamic Thread Pool support ( #2368 )
...
* WebSocket support
* Validate selected subprotocol in WebSocket handshake
* Fix problem with a Unit test
* Dynamic Thread Pool support
* Fix race condition in new Dynamic ThreadPool
2026-02-14 17:44:49 -05:00
yhirose
ed5c5d325b
Parallel test on CI ( #2364 )
...
* Parallel test on CI
* Fix problem with Windows
* Use cache for vcpkg
* Parallel 'No Exception' test
* Use one job to run all shards
2026-02-13 01:55:30 -05:00
yhirose
c1ee85d89e
Use iptables to disable network ( #2363 )
...
* Use iptables to disable network
* Fix race condition problem
* Enable network after test finishes
2026-02-12 22:46:26 -05:00
yhirose
f80864ca03
Resolve #2359
2026-02-11 14:25:27 -10:00
yhirose
1f1a799d13
Fix #2351
2026-02-09 16:43:02 -10:00
yhirose
4e14bc8948
Fix memory leak ( #2348 )
...
* Fix memory leak
* Fix flaky errors
2026-02-08 15:49:30 -10:00
yhirose
5d717e6d91
Resolve #2347
2026-02-08 09:40:26 -10:00
yhirose
8b4146324f
Fix #2116 ( #2346 )
...
* Fix #2116
* Fix problem
2026-02-07 19:26:11 -10:00
yhirose
94b5038eb3
Fix build error on Windows
2026-02-06 22:08:28 -10:00
yhirose
9248ce3bfe
Fix problem with PayloadMaxLengthZeroMeansNoLimit
2026-02-06 22:02:22 -10:00
yhirose
4639b696ab
Fix #2339 ( #2344 )
...
* Fix #2339
* Fix CI errors
* Fix Windows build error
* Fix CI errors on Windows
* Fix payload_max_length initialization in BodyReader
* Initialize payload_max_length with CPPHTTPLIB_PAYLOAD_MAX_LENGTH in BodyReader
* Update README and tests to clarify payload_max_length behavior and add no limit case
* Fix server thread lambda capture in ClientVulnerabilityTest
2026-02-06 19:30:33 -10:00
yhirose
6be32a540d
Abstract TLS API support ( Resolve #2309 ) ( #2342 )
...
Abstract TLS API support (OpenSSL and MbedTLS backends)
2026-02-01 23:48:03 -05:00
yhirose
71bb17fb0e
Fix problems with CPPHTTPLIB_NO_EXCEPTIONS
2026-02-01 08:43:13 -05:00
yhirose
094bf112bb
Fix #2340
2026-01-30 22:01:43 -05:00
ctabor-itracs
fbec2a3466
case insensitive hostname validation ( fix #2333 ) ( #2337 )
...
* Add Tests for case sensitive hostname verfication
* Modify check_host_name to perform case insensitive comparisons during ssl hostname validation
---------
Co-authored-by: Tabor, Chris <chris.tabor@commscope.com >
2026-01-23 14:58:47 -05:00
Sung Po-Han
c3fa06112b
Fix set_ca_cert_store() to skip system certs like set_ca_cert_path() ( #2335 )
...
Both APIs conceptually do the same thing: "use these CA certs for
verification." However, set_ca_cert_store() falls through to the else
branch in load_certs() where system certs are added to the user's
custom store, defeating the purpose of certificate pinning.
This change makes set_ca_cert_store() behave consistently with
set_ca_cert_path() by checking ca_cert_store_ before loading system
certificates.
Added test to verify system certs are not loaded when custom store is set.
Co-authored-by: Your <you@example.com >
2026-01-22 18:58:25 -05:00
yhirose
02dfb97fd6
Add Expect: 100-continue support
2026-01-18 22:38:25 -05:00
yhirose
a38a076571
Resolve #2262 ( #2332 )
...
* Resolve #2262
* Enhance request handling on Windows by adding early response check for large request bodies
* Enhance early response handling for large requests with long URIs on Windows
2026-01-18 00:38:43 -05:00
yhirose
b85aa76bd2
Fix #2321 , #2322 , #2326
2026-01-16 11:29:09 -05:00
yhirose
cea018f2cd
Fix #2324
2026-01-11 21:23:15 -05:00
yhirose
a7e1d14b15
Fix warning on Windows
2026-01-10 19:23:35 -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
yhirose
23a1d79a66
Fix #2318
2026-01-02 20:45:01 -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
cdf0d33258
Fix #2301
2025-12-22 22:37:56 -05:00
yhirose
51b704b902
Implement SSEClient ( #2308 )
...
* Implement SSEClient
* Fix Windows problem
2025-12-15 00:00:42 -05:00
yhirose
6a6d4161d1
Removed DigestAuthTest.FromHTTPWatch_Online_HTTPCan
2025-12-14 14:45:48 -05:00
Jean-Francois Simoneau
b7097f1386
Replace httpbin.org with httpcan.org ( #2300 )
...
* Replace httpbin.org with httpcan.org
* Fix DigestAuthTest.FromHTTPWatch_Online test
2025-12-13 23:52:05 -05:00
yhirose
c795ad1c32
Fix #2259 . Add query string normalization to preserve parameter order in requests
2025-12-05 21:39:40 -05:00
yhirose
3e0fa33559
Implement ETag and Last-Modified support for static file responses and If-Range requests ( #2286 )
...
* Fix #2242 : Implement ETag and Last-Modified support for static file responses
* Add ETag and Last-Modified handling for If-Range requests
* Enhance HTTP date parsing with improved error handling and locale support
* Update httplib.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update test/test.cc
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update httplib.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Refactor ETag handling: separate strong and weak ETag checks for If-Range requests
* Fix type for mtime in FileStat and improve ETag handling comments
* Update httplib.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Resolved code review comments
* Update httplib.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update httplib.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Refactor ETag handling: use 'auto' for type inference and improve code readability
* Refactor ETag handling: extract check_if_not_modified and check_if_range methods for improved readability and maintainability
* Code cleanup
* Update httplib.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update test/test.cc
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update httplib.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update httplib.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Enhance ETag handling and validation in httplib.h and add comprehensive tests in test.cc
* Refactor ETag comparison logic and add test for If-None-Match with non-existent file
* Fix #2287
* Code cleanup
* Add tests for extreme date values and negative file modification time in ETag handling
* Update HTTP-date parsing comments to reference RFC 9110
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-05 18:58:54 -05:00
yhirose
dbd5ca4bf2
Add error handling for stream read timeouts and connection closures
2025-12-04 19:19:18 -05:00
yhirose
8bba34eebc
Add New Streaming API support ( #2281 )
2025-12-01 21:40:13 -05:00
bigmoonbit
c1fa5e1710
chore: fix some typos in comments ( #2282 )
...
Signed-off-by: bigmoonbit <bigmoonbit@outlook.com >
2025-11-27 20:34:18 -05:00
yhirose
84796738fc
Fix #2248
2025-11-25 22:22:07 -05:00
yhirose
337fbb0793
Fix #2279
...
Enhance request handling: add support for requests without Content-Length or Transfer-Encoding headers
2025-11-25 20:30:43 -05:00
Clarkok Zhang
59882752aa
Add Client::Post with both content provider and receiver ( #2268 )
...
Co-authored-by: Clarkok Zhang <clarkok8@gmail.com >
2025-11-14 14:52:06 -05:00
chansikpark
4b2b851dbb
Fix HTTP 414 errors hanging until timeout ( #2260 )
...
* Fix HTTP 414 errors hanging until timeout
* All errors (status code 400+) close the connection
* 🧹
---------
Co-authored-by: Wor Ker <worker@factory>
2025-11-02 22:23:42 -05:00
yhirose
551f96d4a2
Remove REMOTE_PORT dependency from UnixSocketTest.PeerPid
2025-10-27 20:40:12 -04:00
yhirose
ac9ebb0ee3
Merge commit from fork
...
* Fix "Untrusted HTTP Header Handling (REMOTE*/LOCAL*)"
* Fix "Untrusted HTTP Header Handling (X-Forwarded-For)"
* Fix security problems in docker/main.cc
2025-10-27 19:54:12 -04:00
yhirose
f3bba0646a
Fix benchmark test issue on Windows ( #2258 )
2025-10-27 18:27:55 -04:00
yhirose
2da189f88c
Fix EventDispatcher problem ( #2257 )
2025-10-27 18:10:52 -04:00
yhirose
2d8d524178
Fix #2251
2025-10-25 22:06:42 -04:00
yhirose
afa88dbe70
Fix #2250
2025-10-25 21:36:53 -04:00
yhirose
8aedbf4547
Add a unit test
2025-10-25 19:31:48 -04:00