Commit graph

639 commits

Author SHA1 Message Date
eidheim
eca0e1d622 Wrapped async_write calls in a strand since these calls might not be safe to call outside of the context runners if tls is used 2022-11-09 10:51:14 +01:00
eidheim
f28b183f0a Fixed ci for doxygen pages 2022-10-06 13:12:51 +02:00
eidheim
cf85457894 Merge https://gitlab.com/CosmicPegasis/Simple-Web-Server 2022-10-06 13:08:32 +02:00
eidheim
edf99c6426 Fixed OPENSSL_ROOT_DIR for MacOS m1 and m2 setups 2022-09-30 11:59:55 +02:00
Aviral Singh
5f7ed3d984 Fix Doxygen output 2022-09-27 15:49:42 +05:30
Andrei Gheorghe
09303d5b94 Updated the write_header method to not write Content-Length: 0 for SSE resppnses.
There was a possible work-around - add the Transfer-Encoding: "chunked" header - but this is not correct as SSE and chunked are two different things.
2022-09-19 14:57:28 +00:00
eidheim
6aafa6a90a Added missing header in crypto.hpp 2022-09-05 14:57:19 +02:00
eidheim
632ee8d88c Changed http to https output in https_examples.cpp 2022-08-16 11:02:09 +02:00
eidheim
88569844ea Improved SSL_R_SHORT_READ check 2022-08-16 10:58:59 +02:00
woe
adbdc6fcda Ignore SSL_R_SHORT_READ 2022-06-16 14:41:04 +02:00
eidheim
c52ebc2e60 Renamed DEPRECATED to SW_DEPRECATED to avoid name conflicts 2022-05-31 15:12:14 +02:00
eidheim
8598036b73 Updated crypto.hpp: deprecated functions replaced 2022-05-31 15:09:54 +02:00
Hungpo DU
bdb105712b Set a timeout for https async_resolve 2022-02-18 12:25:25 +08:00
Vitalii Trubchaninov
0087f7082e Don't access this before alive check 2021-11-09 01:57:06 -05:00
eidheim
8c8045a696 Client: enables TLS 1.3 2021-04-13 14:38:01 +02:00
eidheim
60a332e124 Reverted context::tls_server to context::ssl23_server change, and fixed stretch CI 2021-04-13 14:24:08 +02:00
eidheim
972ef8ebf9 Merge https://gitlab.com/Eswcvlad/Simple-Web-Server 2021-04-13 14:19:40 +02:00
eidheim
c97be4caab Added another client parse host_port test 2021-04-09 19:34:26 +02:00
eidheim
bab4b309ca Client: added parsing of host specified with IPv6 address 2021-04-09 14:33:43 +02:00
Vlad Lipskiy
d60136d6b2 Replaces context::tls_server with context::ssl23_server to support older boost versions.
tls, tls_client and tls_server contexts were added only in boost 1.63.
2021-04-09 13:17:00 +03:00
eidheim
c896342127 Removed Debian jessie from CI 2021-04-09 09:19:18 +02:00
Vlad Lipskiy
13ab200372 Enables TLS 1.3 support in server_https. 2021-04-02 18:01:44 +03:00
eidheim
1bb89e1e8e Fixes #317: Make use of ASIO_STANDALONE when using standalone asio in order to compile on older asio versions without boost 2021-03-26 10:11:39 +01:00
eidheim
cc0dc20947 Corrected documentation of Server<HTTPS> constructor 2021-02-17 08:59:25 +01:00
eidheim
d6b057a673 Corrected test names in .gitignore 2020-11-29 18:25:13 +01:00
eidheim
dd6094b91c Minor style format correction 2020-10-26 14:28:28 +01:00
Jørgen Sverre Lien Sellæg
898b6abd1b add prefix to common test names 2020-10-09 15:17:15 +02:00
eidheim
190e3498c3 Fixes #305: no longer forces on BUILD_TESTING 2020-09-22 16:41:47 +02:00
eidheim
14c0e3a3a3 Applied style format 2020-09-16 14:53:02 +02:00
eidheim
a0cc9e81c7 Minor cleanup of QueryString::parse 2020-08-31 13:12:21 +02:00
woe
987e8358f9 Allow "?" in URL body
See https://stackoverflow.com/questions/2924160/is-it-valid-to-have-more-than-one-question-mark-in-a-url
2020-08-27 15:10:06 +02:00
woe
8a877027a1 Handle "=" in URL query parameters (i.e. site.com?compare=1=2& 2020-08-27 15:08:55 +02:00
eidheim
5d65a5d89b Fixes another compilation issue: make_steady_timer now returns std::unique_ptr 2020-08-26 11:43:28 +02:00
eidheim
ec27950d68 Fixed compilation issue: also added make_steady_timer for older (boost.)asio versions 2020-08-26 11:37:09 +02:00
eidheim
4c57860d7e Fixed compilation issue with standalone Asio: https://gitlab.com/eidheim/Simple-WebSocket-Server/-/issues/151 2020-08-26 11:18:12 +02:00
eidheim
f6df4cde4e Made use of libfuzzer 2020-08-08 11:14:37 +02:00
Michael Maroszek
8e82428740 expose local endpoint 2020-07-28 11:36:54 +02:00
eidheim
4ec478883e Applied style format 2020-06-28 08:22:49 +02:00
eidheim
7b06f736b2 Merge branch 'ipv4_fallback' of https://gitlab.com/quobert/Simple-Web-Server 2020-06-28 08:13:59 +02:00
eidheim
8ee71cddbb Fixes #301: Do not run add_compile_options when Simple-Web-Server is a sub-project 2020-06-26 18:51:22 +02:00
Robert Doebbelin
69d6a42089 Fall back to IPv4 if IPv6 is not supported 2020-06-26 15:28:22 +02:00
eidheim
eff3b76aa5 Related to #298: fixed chunk transfer read when only end of chunk remains unread 2020-05-13 13:32:59 +02:00
eidheim
9cdfe80ce6 Corrected boost::asio::streambuf to asio::streambuf 2020-05-13 10:38:03 +02:00
eidheim
a20a729a40 Fixes #298: corrected removal of chunk end when receiving larger chunks 2020-05-13 10:28:27 +02:00
eidheim
d49072a4f1 Fixes #298: corrected chunked transfer read where first bytes in a chunk could be erroneously removed 2020-05-12 15:54:56 +02:00
eidheim
409054e812 Fixes #296: corrected client response parsing when response contained header field Connection: close 2020-04-18 13:07:44 +02:00
eidheim
61990c2aee Fixes #295: set default client port when unable to parse port string 2020-04-17 13:36:57 +02:00
eidheim
ebeafc989e Fixes #293: added workaround for MSVC max bug 2020-04-03 11:10:40 +02:00
eidheim
ec593ebd93 Fixes #287: fixed STREQUAL expressions in CMakeLists.txt 2020-04-03 11:03:19 +02:00
eidheim
4d3ca3c1c0 Fixes #291 : added missing inline keyword to make_work_guard 2020-02-28 11:35:57 +01:00