Commit Graph

1509 Commits

Author SHA1 Message Date
Michael Schreckenbauer
df3d7cad41 define S_ISREG on windows 2022-06-22 10:54:25 +02:00
MichaelSB
b788fc43c5
Merge branch 'master' into response_check_file_type 2022-06-22 10:53:37 +02:00
Vladislav Oleshko
4df3f2f171 Add expiration tracker 2022-06-21 23:52:21 +03:00
Vladislav Oleshko
9ed2e32905 Remove boost impl, unify integral types 2022-06-21 17:05:31 +03:00
Vladislav Oleshko
29c657df8f Add session id preset, remove boost filesystem, small fixes 2022-06-21 15:38:22 +03:00
Farook Al-Sammarraie
8d7e53d40e
Merge pull request #476 from CrowCpp/ws-error-reason
Add error message to Websocket `onerror` handler
2022-06-21 14:29:57 +03:00
Farook Al-Sammarraie
454dabdba2
formatting 2022-06-21 02:56:07 +03:00
Farook Al-Sammarraie
ecc06fa0b3
added missing & signs in guide 2022-06-21 02:32:19 +03:00
The-EDev
ab2a132bff
fixed error in json float dump (where a pointer was checked against nullptr instead of '\0') 2022-06-21 02:25:42 +03:00
The-EDev
6f832f82fa
added message string to websocket error handler 2022-06-21 02:23:51 +03:00
Farook Al-Sammarraie
d7b3106120
Merge pull request #465 from aloussase/master
overload template_t::render to accept context as an r-value
2022-06-20 14:10:08 +03:00
MichaelSB
a3307170cf
Merge branch 'master' into response_check_file_type 2022-06-20 08:00:44 +02:00
Alexander Goussas
29d50e8df2 overload template_t::render to accept context as an r-value 2022-06-20 06:25:13 +03:00
Farook Al-Sammarraie
5cdc2fcc2b
Merge pull request #466 from wnself/patch-1
Fix wvalue::operator = (wvalue && r); Number type loss problem
2022-06-20 06:24:18 +03:00
The-EDev
c2d1bfac38 Fix wvalue::Operator = (wvalue && r); 2022-06-20 05:52:30 +03:00
MichaelSB
719929b930
Merge branch 'master' into response_check_file_type 2022-06-18 19:27:10 +02:00
Farook Al-Sammarraie
ee0e0254d2
Merge pull request #457 from CrowCpp/ls-boostless
Deboostify Crow
2022-06-18 17:23:58 +03:00
Luca Schlecker
02bbbde8b7 add comment to trim function, use it correctly and remove redundant whitespace checks in CookieParser. 2022-06-18 17:21:37 +03:00
Luca Schlecker
d27b5bc1bd docs: mention minimum asio version. 2022-06-18 17:21:37 +03:00
Luca Schlecker
e7a04859fe r_string: combine equality operation algorithm.
A private templated function containing the algorithm is used to prevent repetition.
2022-06-18 17:21:37 +03:00
Luca Schlecker
a977c87fef update documentation to reflect the removal of boost as a dependency. 2022-06-18 17:21:37 +03:00
Luca Schlecker
126d79dc38 cookie_parser & query_string: use std::unique_ptr instead of raw pointers. 2022-06-18 17:21:37 +03:00
Luca Schlecker
d3e19a53ab add initial unittests for utility::string_equals and utility::lexical_cast. 2022-06-18 17:21:37 +03:00
Luca Schlecker
9f98a66cd1 utility: improve string_equals function.
Return early if inequality is found.
2022-06-18 17:21:37 +03:00
Luca Schlecker
2fbf93e211 replace std::error_code with asio::error_code.
This makes the code more consistent and also reflects the intention a little better.
2022-06-18 17:21:37 +03:00
Luca Schlecker
9cffc3f268 json: add missing r_string comparison operator. 2022-06-18 17:21:37 +03:00
Luca Schlecker
6c4ad07a62 utility: trim and lexical_cast were missing inline static leading to compilation errors. 2022-06-18 17:21:37 +03:00
Luca Schlecker
649e9c46ff cmake: properly include asio. 2022-06-18 17:21:37 +03:00
Luca Schlecker
4aa9b3e89b json: replace std::equal to maintain C++11 compatibility. 2022-06-18 17:21:37 +03:00
Luca Schlecker
99d9d7f52d remove final traces of boost. 2022-06-18 17:21:37 +03:00
Luca Schlecker
5336d0fff7 json: replace remaining boost functions with their std equivalent. 2022-06-18 17:21:37 +03:00
Luca Schlecker
60ca594b91 cookie_parser: use utility::trim instead of boost::trim. 2022-06-18 17:21:37 +03:00
Luca Schlecker
982e62eabf utility: add string trimming function. 2022-06-18 17:21:37 +03:00
Luca Schlecker
8d0d4c80ee Remove usage of boost::optional.
Move to pointers instead.
This implementation relies on the safe deletion of `nullptr`.
2022-06-18 17:21:37 +03:00
Luca Schlecker
5b1c5a9e9e removing some boost includes, fixing version checks and further phase out boost. 2022-06-18 17:21:37 +03:00
Luca Schlecker
df92d6d639 replace boost::lexical_cast with an equivalent based on std::stringstream. 2022-06-18 17:21:37 +03:00
Luca Schlecker
61d27e3b82 ci_map: replace boost::hash_combine with member function. 2022-06-18 17:21:37 +03:00
Luca Schlecker
f3d00bbecf replace boost::asio with standalone asio. 2022-06-18 17:21:37 +03:00
Luca Schlecker
c780642dd8 http_server: replace boost::asio::deadline_timer with a standalone asio equivalent. 2022-06-18 17:21:37 +03:00
Luca Schlecker
2f87414769 replace usage of boost::iequals with utility::string_equals. 2022-06-18 17:21:37 +03:00
Luca Schlecker
f3dba60efd utility: add string_equals function.
It serves as a replacement for boost::iequals.
2022-06-18 17:21:37 +03:00
Luca Schlecker
58583bf1a5 deboostify task_timer. 2022-06-18 17:21:37 +03:00
Luca Schlecker
78f764791e remove 'using namespace boost' declarations. 2022-06-18 17:21:37 +03:00
Luca Schlecker
053a449a5b link to standalone asio 2022-06-18 17:21:37 +03:00
MichaelSB
074fe2564b
Merge branch 'master' into response_check_file_type 2022-06-17 19:25:39 +02:00
Farook Al-Sammarraie
8c5deeedd3
fixed dead link in json guide 2022-06-17 18:39:19 +03:00
Michael Schreckenbauer
c593fbb3b4 only allow regular files in set_static_file_info, return 404 in all other cases 2022-06-15 09:20:11 +02:00
Farook Al-Sammarraie
68452a3995
Merge pull request #467 from erikaldsund/fix_failing_unittests_in_master_and_1.0
Fix failing unittests in master and 1.0
2022-06-13 23:35:16 +03:00
erik
3782044249 Fixed race condition: calling stop() immediately after async_run() and wait_for_server_start() could lead to deadlock
This is the case in some short, simple unit tests, such as "get_port".
2022-06-13 10:53:27 +02:00
erik
3fe1ee062a Fixed base64 test to not depend on terminating null-characters in binary strings
std::strings with binary data should always be created with the constructor
taking a char pointer and the length of the character data.
2022-06-13 09:27:30 +02:00