Commit Graph

1828 Commits

Author SHA1 Message Date
An Tao
56f620717e
Fix CI in MacOS (#1719) 2023-08-11 00:32:57 +08:00
An Tao
ad99cf724d
Ensure that all filters, AOP advices, and handlers are executed within the IO threads. (#1717) 2023-08-10 23:53:56 +08:00
Ken Matsui
a91014a982
Remove unused Jekyll config (#1714) 2023-08-10 15:24:13 +08:00
Ken Matsui
9b2716ec24
Remove unused CI files (#1713) 2023-08-09 19:25:15 +08:00
an-tao
d00222883f Update trantor 2023-08-03 10:18:59 +08:00
luk1337
0fb887cb07
Fix build error on win32/mingw (#1668) 2023-08-01 00:30:55 +08:00
Bensuperpc
f16017ee6e
Change options BUILD_CTL and BUILD_EXAMPLES and update readme with Building options (#1672)
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
2023-07-31 23:16:15 +08:00
VladlenPopolitov
ec5dfdd9f7
Use unsigned char to call the std::isspace function (#1703) 2023-07-30 23:03:06 +08:00
Hayden Zhou
8f37e526cc
Fix target link libraries of yaml-cpp to comaptiable with vcpkg. (#1698) 2023-07-29 23:23:05 +08:00
Muhammad
c1da9922eb
Removed const string& (#1693) 2023-07-25 22:22:22 -07:00
Tanglong3bf
ca92e32d55
Add an example of yaml config file. (#1690) 2023-07-22 22:04:28 +08:00
AR Dabbour
cca5e5badd
chore: add package.xml (#1681)
the package.xml file allows for the integration of drogon in ROS applications.
2023-07-14 14:21:49 +08:00
An Tao
92e036874a
Fix issues in the ListParaView and content types (#1678) 2023-07-12 15:59:13 +08:00
Muhammad
cb2ae14bdf
Make isBase64() and isInteger() take string_view (#1662) 2023-07-05 17:47:49 +08:00
Muhammad
34a5c37974
constexpr base64 length calculators (#1652) 2023-07-05 15:25:33 +08:00
Jorge
3c82dcb491
Add CodeQL workflow (#1664) 2023-07-03 17:19:25 +08:00
Umar Sharief
6dbe650c74
Fix typo in newHttpJsonResponse documentation (#1658) 2023-07-01 11:44:22 +08:00
Umar Sharief
74bb47c690
Add CT_TEXT_JAVASCRIPT (#1654) 2023-07-01 11:43:39 +08:00
Muhammad
61073b4f74
Base64 improvements (#1635) 2023-06-24 18:09:08 +08:00
Nitromelon
eea916315e
Throw custom exception in HttpClient (#1641) 2023-06-24 18:05:39 +08:00
fantasy-peak
8e4474bf4c
Add overload function of newHttpResponse (#1646) 2023-06-24 18:04:38 +08:00
Muhammad
269399b701
Minor improvements for SlashRemover plugin (#1634) 2023-06-14 13:46:15 +08:00
An Tao
586fd6d67a
Use shared_ptr to store plugins (#1640) 2023-06-14 10:13:12 +08:00
Nitromelon
44b6916d7e
Support setting max_files in loggers. (#1628) 2023-06-09 13:14:03 +08:00
Nitromelon
7f04e63f25
Coroutine handle should be captured by value. (#1631) 2023-06-06 22:29:48 +08:00
fantasy-peak
5e245d08dc
Add setsockopt to HttpClient (#1625) 2023-05-31 16:44:12 +08:00
An Tao
b9a699f866
Update trantor (#1623) 2023-05-30 22:39:19 +08:00
fantasy-peak
3263b78ec3
Add getOriginalPath function (#1620) 2023-05-28 15:12:09 +08:00
Muhammad
07726dfcab
Add SlashRemover plugin (#1614) 2023-05-26 11:08:57 +08:00
435qb
415b34e06d
Fix Missing Header BaseBuilder.h in CMakeLists (#1617) 2023-05-23 19:39:08 +08:00
Ken Matsui
75b106599d
Implement QueryBuilder (#1331) 2023-05-22 09:52:19 +08:00
Muhammad
7fce0f1ff5
Hodor plugin - Use IP bytes for user IP identification (#1606) 2023-05-19 23:34:15 +08:00
Muhammad
87a3132fd1
Fixed logic error of limiterExpireTime_ (#1605) 2023-05-13 23:26:13 +08:00
An Tao
abf6f6cc86
Fix a hanging bug when writing large string to text field (postgresql) (#1599) 2023-05-11 09:55:40 +08:00
Ken Matsui
bd66fa4f55
Remove path from COMPILER_COMMAND (#1590) 2023-05-09 19:24:00 +08:00
Nitromelon
5baca75359
Bugfix: PgBatchConnection did not report error message. (#1588) 2023-05-09 19:20:23 +08:00
An Tao
29984f26e0
Revert modifications to the type of clientMaxBodySize (#1596) 2023-05-09 19:18:10 +08:00
Sqeaky
fddbc0abb7
Update SqlBinder.h (#1595)
On a fully updated Rasperry Pi OS using Raspberry Pi OS 2023-05-03 Drogon built fine, but a project linking to/including drogon would fail to build with `/usr/local/include/drogon/orm/SqlBinder.h:70:1: error: body of ‘constexpr’ function ‘constexpr T htonT(T) [with T = long unsigned int]’ not a return-statement 70 | }`.

Compiler details:
    $ gcc -v
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/10/lto-wrapper
    Target: aarch64-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.1-6' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex
    Thread model: posix
    Supported LTO compression algorithms: zlib zstd
    gcc version 10.2.1 20210110 (Debian 10.2.1-6)

This is a proposed fix for this issue that adjusts this function to be a pair of IFDEFed return statements based on network byte order as the original function appeared to intend. This makes it so the function body is entirely a single return statement on each platform. 

The error message from the C++17 compiler (which is the latest version supported on Raspberry Pi OS currently) indicates that constexpr functions must be entirely single return statements.
2023-05-09 17:23:47 +08:00
Omar Mohamed Khallaf
bf4ff759ad
Fix typo in config (#1593)
change 'enabled_compresed_request' to 'enabled_compressed_request'
2023-05-08 23:37:52 +08:00
Kumar Arnav
42bbc185e1
Fix #1497 (#1592) 2023-05-08 09:46:34 +08:00
an-tao
8b250f8638 Update trantor 2023-05-04 10:34:35 +08:00
Martin Chang
178fb22b49
update trantor (#1579) 2023-04-29 16:41:49 +08:00
Charles
2caa8c4a34
Add webp and svg to the default file_types (#1575) 2023-04-27 15:19:33 +08:00
Horribile
4ec75e03e0
Possibility to add plugins without config file (#1572) 2023-04-24 19:42:52 +08:00
monoliths
22c7567da3
Fix error: conversion from ‘long int’ to ‘Json::Value’ is ambiguous (#1573) 2023-04-23 14:48:47 +08:00
An Tao
f615d5e8df
Add the forwardCoro method to HttpAppFramework (#1570) 2023-04-19 13:29:11 +08:00
An Tao
f14ba8de28
Update the README.md (#1567) 2023-04-18 17:17:56 +08:00
timulations
7c96c7fbf5
Fix bug on Mac M1 with redis chat example code (#1566) 2023-04-17 23:08:17 +08:00
An Tao
65b1715539
Add the DROGON_EXPORT macro to the GlobalFilters plugin (#1565) 2023-04-16 13:42:46 +08:00
an-tao
4358b71f55 Add filters and plugins to the drogon.h header file 2023-04-16 12:15:27 +08:00