Farook Al-Sammarraie
db7f9d974e
Merge pull request #495 from aloussase/master
...
Add response constructor overload
2022-07-09 03:42:09 +03:00
Alexander Goussas
1bdcd317b7
add response constructor overload
2022-07-05 17:14:50 -05:00
Farook Al-Sammarraie
fc4ad288cf
Merge pull request #491 from erikaldsund/head_route_fix
...
Fixed bug: Could not define route for HEAD method
2022-07-01 15:05:24 +03:00
Erik Åldstedt Sund
c2dd0146a5
Merge branch 'CrowCpp:master' into head_route_fix
2022-07-01 10:15:30 +02:00
Farook Al-Sammarraie
b7c092e962
Merge pull request #492 from CrowCpp/ls-cmakefix
...
fix CrowConfig.cmake not being able to find Findasio.cmake module.
2022-06-30 17:42:39 +03:00
Luca Schlecker
753562e25d
fix CrowConfig.cmake not being able to find Findasio.cmake module.
2022-06-30 13:57:37 +02:00
erik
fcd38e7447
Fixed bug: Could not define route for HEAD method
...
Defining a HEAD method would give HTTP error code 405 (Method Not Allowed) and
calling OPTIONS on the route would return HEAD twice in the Allow header.
2022-06-30 08:07:11 +02:00
The-EDev
3431d7c053
fixed dark theme color issues
2022-06-29 02:41:59 +03:00
Farook Al-Sammarraie
2c6437aee6
Merge pull request #486 from CrowCpp/qs-parse-increment
...
Fixed issue where an index in qs_parse is incorrectly incremented beyond the maximum possible value
2022-06-28 17:08:41 +03:00
The-EDev
79eec91f00
Fixed issue where an index in qs_parse is incorrectly incremented beyond the maximum possible value
2022-06-27 22:38:24 +03:00
Farook Al-Sammarraie
75c522f4f5
Merge pull request #484 from D7EAD/master
...
Optionally make use of Markdown 'warning' notation.
2022-06-27 12:04:16 +03:00
Farook Al-Sammarraie
e23947951f
small adjustments to warning syntax
2022-06-27 12:02:39 +03:00
Dread
53bb1c5a74
Merge branch 'CrowCpp:master' into master
2022-06-27 01:57:57 -04:00
Dread
b8bfb1f441
Addition of Markdown 'warning' format.
...
Replaces 'Disclaimer' under 'Examples' with Github's newly-introduced warning markdown notation.
2022-06-27 01:54:35 -04:00
Farook Al-Sammarraie
6f1baed6d3
Merge pull request #470 from MichaelSB/response_check_file_type
...
only allow regular files in set_static_file_info, return 404 in all o…
2022-06-23 18:28:44 +03:00
MichaelSB
97405c88ab
Merge branch 'master' into response_check_file_type
2022-06-22 19:45:22 +02:00
Luca Schlecker
c56f101fbc
Merge pull request #482 from CrowCpp/asio_fix
...
rework the way asio is handled as a dependency.
2022-06-22 18:38:21 +02:00
Luca Schlecker
3a485078b8
rework the way asio is handled as a dependency.
2022-06-22 18:14:09 +02:00
MichaelSB
6d6d36d9b6
Merge branch 'master' into response_check_file_type
2022-06-22 16:55:18 +02:00
Luca Schlecker
2ea13b98d1
Merge pull request #479 from MichaelSB/fix_http_parser_includes
...
move includes outside namespace crow
2022-06-22 16:43:58 +02:00
Michael Schreckenbauer
83cde80023
added comment on S_ISREG
2022-06-22 15:00:00 +02:00
MichaelSB
5f73f39ea7
Simplified condition for defining S_ISREG
...
Co-authored-by: Farook Al-Sammarraie <farook@the-e-dev.com>
2022-06-22 14:54:52 +02:00
Michael Schreckenbauer
cde0e67b06
move includes outside namespace crow
2022-06-22 11:16:33 +02:00
Michael Schreckenbauer
beb6e86b1e
Merge branch 'response_check_file_type' of github.com:MichaelSB/Crow into response_check_file_type
2022-06-22 10:55:51 +02:00
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
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