Tristan CADET
d0f1991e38
fix: parse body when unsupported HTTP/2 upgrade is requested
...
Crow does not support HTTP/2 at the moment.
According to the RFC https://datatracker.ietf.org/doc/html/rfc7540#section-3.2
"A server that does not support HTTP/2 can respond to the request as though the Upgrade header field were absent"
2024-03-17 15:02:25 +01:00
Gulliver
da570e1cbd
added pip install for mike
2024-03-12 21:52:15 +01:00
sina-rostami
106aeb0f0d
Add indentation to json dump method
...
Closes #747
2024-03-10 21:41:43 +01:00
Corentin Schreiber
049490c2c9
Add configurable exception handler ( #637 )
...
* Added exception_handler()
* Fixed worker crash if exception thrown in catch-all handler
2024-03-10 13:52:13 +01:00
dependabot[bot]
c95e33ac0a
Bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-10 13:46:42 +01:00
dependabot[bot]
7e397f7fbf
Bump dawidd6/action-download-artifact from 2 to 3
...
Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact ) from 2 to 3.
- [Release notes](https://github.com/dawidd6/action-download-artifact/releases )
- [Commits](https://github.com/dawidd6/action-download-artifact/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: dawidd6/action-download-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-10 13:46:10 +01:00
dependabot[bot]
0c5a3dcb34
Bump actions/upload-artifact from 3 to 4
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-10 13:45:33 +01:00
StefanoPetrilli
db059ce4c4
adds flag to avoid adding blueprints multiple times
2024-03-10 13:11:56 +01:00
StefanoPetrilli
55e604f939
adds a flag to avoid adding static routes multiple times
2024-03-10 13:11:56 +01:00
StefanoPetrilli
8f7e28ef91
adds new tests
2024-03-10 13:11:56 +01:00
StefanoPetrilli
00bd06d6d3
update existing tests
2024-03-10 13:11:56 +01:00
StefanoPetrilli
a62956b61a
split the different responsibilities of validate into different functions
2024-03-10 13:11:56 +01:00
gittiver
fda1109e1a
Create dependabot.yml
2024-03-10 13:11:19 +01:00
Harri Porten
e68c3d6a8d
Fixed some harmless typos.
2024-03-10 13:10:48 +01:00
gittiver
08acd3a5fa
Update doxygen-gh-pages.yml, added mike for versioning
2024-03-10 12:07:57 +01:00
bruvey
c47540bb8c
Update http_connection.h
2024-03-02 10:19:00 +01:00
bruvey
d3bd942223
Update http_connection.h
2024-03-02 10:19:00 +01:00
James Knight
cb38b9fe4f
add spdx license id to compiled header
...
This commit adjusts the merging script to include a SPDX license
identifier at the start of the single header file. This can help users
of Crow which have environments using license scanning tools to help
manage/monitor used implementation.
Signed-off-by: James Knight <james.d.knight@live.com>
2024-02-23 10:45:30 +01:00
June Han
5ecd04ade2
fix: call after_handlers for legitimate requests without body part
2024-02-21 21:37:51 +01:00
David Petkovsek
1e864a2f32
Handle _CROW_ILL or _CROW_ICD being NOTFOUND
...
If the variable is NOTFOUND then set it to "". Then at the end after possible list appends. If the variable is not "" then update the target properties.
This gets rid of a warning
2024-02-20 23:22:47 +01:00
witcherofthorns
3f632dd71b
small explanations in the example on using CORS middleware in Crow v1.0
2024-02-18 13:54:20 +01:00
Corentin Schreiber
df756fed45
Use const std::string& as argument to route() ( #684 )
2024-01-29 18:10:20 +01:00
JuneHan
973d5fa1cd
fix: minimize the precision loss when dumping double to string ( #712 )
...
* fix: minimize the precision loss when dumping double to string
* abandon one-time macro
* replace hard-coded buffer size, replace `sprintf` with `snprintf`
* replace `DECIMAL_DIG` with `DBL_DECIMAL_DIG`
* Update json.h changed to C++11 DECIMAL_DIGIT
* added cfloat include
* identify float and double as different numeral types, and approach their precisions accordingly
---------
Co-authored-by: June Han <jun_h@pretia.co.jp>
Co-authored-by: gittiver <gulliver@traumkristalle.net>
2024-01-29 15:25:26 +01:00
Gulliver
fb171f5195
package format changed to zip, version set to >1.1.0 (first release)
2024-01-29 15:16:35 +01:00
bruvey
4555ffd0c9
Fix #754 ( #755 )
...
* Update http_response.h
2024-01-26 19:38:05 +01:00
gittiver
f4166acc66
prepare release 1.1.0 on master-branch by adding new version to documentation ( #742 )
...
prepare documentation by adding new version
updated Doxyfile version to 1.1
2024-01-20 20:26:20 +01:00
keith-dev
a88ec3bf64
Fix clang debug build (Android and FreeBSD) ( #740 )
...
* fix build: android/termux/clang-17.0
* Android build links with liblog in places
* Fix clang debug build (Android and FreeBSD)
2024-01-16 20:19:06 +01:00
bruvey
78d1d2bfba
fix #626
2024-01-09 20:16:31 +01:00
Gulliver
17034adae5
on all platforms added CROW_FEATURES ssl, compression and needed libs to prerequisites
...
general tests are now enabled on MSVC, mustachetests disabled due to some strange bug in python script (will be done later)
2024-01-07 16:04:38 +01:00
keith-dev
6aed71e3c4
fix build: android/termux/clang-17.0 ( #736 )
...
* fix build: android/termux/clang-17.0
* Android build links with liblog in places
2024-01-04 10:46:21 +01:00
na-trium-144
921ce6f972
fix order of destructor call of io_service
2024-01-01 22:51:05 +01:00
jfm
f3e0846ee5
My mistake. Crow is compiled with c++11 under windows and has a macro for std::min not being defined as std::min(a,b) under c++11, CROW_MIN
2024-01-01 22:40:37 +01:00
jfm
6704b9b3ab
Add <algorithm> header-file, it doesn't compile on windows if not included
2024-01-01 22:40:37 +01:00
jfm
195cd6ad00
Fixed a typo. As in other places, use 2^14 here
2024-01-01 22:40:37 +01:00
Felix
ae8643a1b6
Performance fix for non-static streaming data
2024-01-01 22:40:37 +01:00
Wayne Gerard
4f3f5deaaa
Update MacOS setup guide ( #691 )
...
1. For M1/M2/etc. devices the homebrew location is slightly different, so note that.
2. For clang, linking to pthreads is slightly different so note that as well.
2023-07-22 23:28:58 +02:00
Farook Al-Sammarraie
c755c4c8e6
Merge pull request #683 from cschreib/const
...
Add missing const to mustache `render` and `json::wvalue::operator[]`
2023-07-22 10:42:57 +00:00
Corentin Schreiber
42fab729a2
Add missing const to mustache and json::wvalue::operator[]
2023-07-08 13:04:48 +01:00
Farook Al-Sammarraie
af6b7edc22
Merge pull request #670 from robertgodfrey/doc-update-ws
...
Update websocket example code, minor grammar fixes
2023-06-30 23:35:24 +00:00
Rob Godfrey
6f5a6df642
Update websocket example code, minor grammar fixes
2023-06-25 22:35:18 -10:00
Farook Al-Sammarraie
13a91a1941
Merge pull request #656 from gittiver/fix_conversion_warnings
...
fix diverse compiler warnings
2023-06-17 09:04:15 +00:00
Farook Al-Sammarraie
1648196f7f
allow coverage submission to work with master branch tests
2023-06-16 16:26:01 +00:00
Farook Al-Sammarraie
1918beb0b8
Merge pull request #662 from CrowCpp/coveralls-gha
...
added proper coveralls submission workflow
2023-06-16 13:14:26 +00:00
The-EDev
bf683e5bf7
fixed syntax error
2023-06-16 15:16:19 +03:00
The-EDev
c365201d4f
fixed 'uses' error
2023-06-16 14:21:03 +03:00
Farook Al-Sammarraie
d0001438fe
fixed indentation
2023-06-16 11:09:30 +00:00
The-EDev
34fd61e827
added proper coveralls submission workflow
2023-06-16 14:05:47 +03:00
Farook Al-Sammarraie
94c0cf2d57
Update Doxyfile
2023-06-15 19:25:50 +00:00
Farook Al-Sammarraie
98352e03a1
Update doxygen-gh-pages.yml
2023-06-15 19:22:50 +00:00
Farook Al-Sammarraie
97025f937a
Merge pull request #654 from gittiver/add_github_action_for_gh_pages
...
Add GitHub action for gh pages
2023-06-15 19:22:19 +00:00