1
0
mirror of synced 2025-06-16 17:00:54 +03:00
Commit Graph

1548 Commits

Author SHA1 Message Date
8794792baa Treat out-of-range last_pos as the end of the content (#2009)
RFC-9110 '14.1.2. Byte Ranges':
A client can limit the number of bytes requested without knowing the
size of the selected representation. If the last-pos value is absent,
or if the value is greater than or equal to the current length of the
representation data, the byte range is interpreted as the remainder of
the representation (i.e., the server replaces the value of last-pos
with a value that is one less than the current length of the selected
representation).

https://www.rfc-editor.org/rfc/rfc9110.html#section-14.1.2-6
2024-12-23 13:14:36 -05:00
b85768c1f3 Fix #2005 2024-12-16 17:43:50 -05:00
e6d71bd702 Add a unit test for Issue #2004 2024-12-12 18:15:22 -05:00
258992a160 Changed to use non-blocking socket in is_ssl_peer_could_be_closed 2024-12-03 19:26:08 -05:00
a7bc00e330 Release v0.18.3 v0.18.3 2024-12-03 06:33:00 -05:00
11a40584e9 Fix #1998 2024-12-03 00:38:20 -05:00
3e86bdb4d8 Fix #1997 (#2001) 2024-12-03 00:11:29 -05:00
c817d65695 Fix casting uint64_t to size_t for 32-bit builds (#1999) 2024-12-02 11:09:52 -05:00
51dee793fe Release v0.18.2 v0.18.2 2024-11-29 20:49:50 -05:00
457fc4306e Fix #1993 2024-11-29 20:46:48 -05:00
4f5b003e76 Fix #1992 2024-11-28 20:40:38 -05:00
5421e27106 Fix a compiler warning 2024-11-28 20:39:26 -05:00
fe07660f40 Fix #1986 (#1988) 2024-11-27 12:18:35 -05:00
da2f9e476e Fix #1985 (#1989) 2024-11-27 12:18:23 -05:00
1a7a7ed1c3 test: Don't check for the exact size of compressed content. (#1984)
The testsuite checks for the exact size of the compressed content. The
exact size can change if the zlib library is using a different strategy.
In thise case using zlib-ng results in a slightly larger content leading
to a failure in the test.

Check that the compressed content is less than 10MiB which is a tenth of
the orignal content and proves that compression works.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
2024-11-25 15:46:41 -05:00
413994912d Update vcxproj files 2024-11-16 11:14:13 -05:00
01dcf1d0ad Fix #1969 (without unnecessary sleep_for) (#1982) 2024-11-16 10:56:57 -05:00
8e378779c2 Update README 2024-11-16 09:45:04 -05:00
970b52897c Fix #1980
Fix #1980
2024-11-16 02:09:52 -05:00
412ba04d19 Fix problem caused by #1975 2024-11-14 20:33:08 -05:00
bfef4b3e9b Fix #1975 2024-11-14 17:27:28 -05:00
7bd316f3d0 Fix #1977 2024-11-14 16:46:27 -05:00
26208363ee Fix warning 2024-11-14 16:46:09 -05:00
b1b4bb8850 clangformat 2024-11-13 22:50:03 -05:00
9dd565b6e3 Resolve #1973 (#1976)
* Fix #1973

* Fixed problems with 'Language for non-Unicode programs' setting on Windows

* Fix problems on English locale
2024-11-13 22:47:09 -05:00
924f214303 Added unit test for exception handler 2024-11-02 07:23:44 -04:00
5c1a34e766 Release v0.18.1 v0.18.1 2024-10-18 17:16:54 -04:00
fa90d06dd5 Merge branch 'master' of github.com:yhirose/cpp-httplib 2024-10-18 17:16:14 -04:00
d869054318 Allow empty header values (#1965) 2024-10-18 10:16:48 -04:00
0cc1ca9a8d Remove extra semicolon (#1963)
This fixes a -Wc++98-compat-extra-semi instance.
2024-10-15 00:09:04 -04:00
3701195033 Merge branch 'master' of github.com:yhirose/cpp-httplib 2024-10-14 21:32:28 -04:00
f884a56258 Remove space between operator"" and _t (#1962)
This should fix a -Wdeprecated-literal-operator instance since this is
deprecated as a result of CWG2521 (iiuc C++23).
2024-10-14 21:32:13 -04:00
d79633ff52 clangformat 2024-10-11 14:49:46 -04:00
e0ebc431dc Fix #1959 2024-10-11 13:43:01 -04:00
131bc6c674 Add documentation for using Unix domain sockets. (#1954)
* Add documentation for using unix domain sockets.

* Formatting
2024-10-03 10:53:25 -04:00
10d68cff50 Added a unit test for #1946 2024-09-26 22:24:44 -04:00
996acc5253 Feat: add CPack support (#1950) 2024-09-25 00:19:41 -04:00
7c4799d0cf Fix #1798 for CMake (#1944) 2024-09-19 18:33:32 -04:00
c239087332 Fix Mafile errors 2024-09-17 18:37:44 -04:00
7018e9263d test(meson): copy files in www directory (#1941)
These files were added in commits
2d01e71286 and
b8315278cb
2024-09-17 18:06:01 -04:00
4990b4b4b7 Fix problems with SSLSlientServerTest.* tests 2024-09-17 17:00:17 -04:00
5064373c23 test(meson): fix SSLClientServerTest.* tests with OpenSSL 3.2.0 (#1940)
* build(meson): bump minimum version to 0.62.0

This allows making some minor cleanups

* test(meson): fix SSLClientServerTest.* tests with OpenSSL 3.2.0

Since OpenSSL commit
<342e3652c7>,
the default X.509 certificate format generated with the `openssl req`
command has been changed to X.509 v3 from X.509 v1.

For some reason, this change breaks cpp-httplib's SSLClientServerTest.*
tests.

To fix the test failures, this patch passes the '-x509v1' flag instead
of '-x509' when OpenSSL 3.2.0 or newer is detected. To detect the
version of a command line utility, Meson 0.62.0 or later is required.

Fixes <https://github.com/yhirose/cpp-httplib/issues/1798>, but only for
the Meson build system.
2024-09-17 16:58:09 -04:00
6c93aea59a Revert "Enabled HostnameToIPConversionTest.YouTube_Online partially"
This reverts commit 6553cdedab.
2024-09-15 01:18:20 -04:00
6553cdedab Enabled HostnameToIPConversionTest.YouTube_Online partially 2024-09-13 20:45:59 -04:00
a61b2427b0 Update benchmark base vertion to 0.18.0 2024-09-13 20:34:30 -04:00
af4ece3d5f Update benchmark/Makefile 2024-09-12 20:41:56 -04:00
e64379c3d7 Release v0.18.0 v0.18.0 2024-09-12 12:28:35 -04:00
5053912534 Updated actions/upload-artifact from v1 to v4 2024-09-12 12:04:25 -04:00
932b1cbc32 Fix shadow parameter warning (#1936) 2024-09-12 12:02:25 -04:00
de36ea7755 Fix #1933 on Linux and macOS 2024-09-09 23:07:27 -04:00