Commit Graph

1280 Commits

Author SHA1 Message Date
Rafał Bugajewski 72a4cad9c1
Added OpenBSD as Supported Operating System 2020-11-15 15:59:52 +01:00
Rafał Bugajewski 3f0eec6427
Added OpenBSD as Supported Operating System 2020-11-15 15:58:42 +01:00
Rafał Bugajewski 3c0103d324
Added OpenBSD as Supported Operating System 2020-11-15 15:57:59 +01:00
Joakim L. Gilje 886dfc3648
Support OpenBSD (#626)
Co-authored-by: an-tao <antao2002@gmail.com>
2020-11-15 12:18:01 +08:00
An Tao 4f9ee82153
Modify the WebSocketTest controller to create a simple chat room (#625) 2020-11-14 11:48:40 +08:00
An Tao 7e8beacd1d
Fix error when receiving response without content-length header (#623) 2020-11-11 21:50:43 +08:00
an-tao fb17efe765 Bump version to 1.1.0 2020-10-31 11:10:23 +08:00
An Tao 594911b7a2
Fix a bug in the Mapper::insertFuture() (#620) 2020-10-29 20:09:16 +08:00
An Tao dbf21f7dbc
Fix a bug when creating sqlite3 database models (#618) 2020-10-27 21:26:01 +08:00
An Tao de37a0ae29
Add the Host and Sec-WebSocket-Version headers when connecting to a websocket server (#615) 2020-10-25 08:36:40 +08:00
An Tao ed2818ed89
Find mariadb client library correctly on Ubuntu 20.04 (#613) 2020-10-24 14:28:39 +08:00
Amirali Amirifar 17b3ea471d
Remove duplicate definition of `args` vector. (#609)
* Remove duplicate definition of `args` vector.

Removed duplicate definition of the variable `args` which could be defined in the first line rather than defining once in the if scope and once in the main function.
2020-10-13 10:29:01 +08:00
An Tao 43e7b3fec0
Add --path-to-namespace option to drogon_ctl for creating views (#607) 2020-10-12 21:51:39 +08:00
An Tao c264c91f38
Support namespaces when creating view source files (#606) 2020-10-09 21:41:27 +08:00
An Tao 34d2fe45c3
Modify the procedure of the app().run() method (#603) 2020-10-09 15:02:05 +08:00
Martin Chang fb7d73be06
Use TW terminology for the TW document (#601) 2020-10-07 00:20:42 +08:00
VayuDev de0d793fc7
Fix HttpServer::isWebSocket to detect lowercase "upgrade" connection value (#594)
* Fix HttpServer::isWebSocket to detect lowercase "upgrade" connection value

The websocket library boost-beast sends the following http header:
'Connection: upgrade', while almost anything else uses:
'Connection: Upgrade'. Drogon used to only recognize the latter as
websocket request, now it recognizes both.

* Fix HttpServer::isWebSocket to detect case-insenstive "websocket"
upgrade value

This was a bug as previously, we only accepted the exact string
"websocket", although the standard specifies that it should be
case-insensetive.

Co-authored-by: VayuDev <vayudev@protonmail.com>
2020-10-04 22:53:33 +08:00
Andre Castellanos 3d9278cb82
CMAKE bug fixed when SHARED and EXAMPLES are on (#597)
Co-authored-by: andre <andre@pop-os.localdomain>
2020-10-04 11:10:23 +08:00
Haceau-Zoac 2ffd4738b2
Add zh-TW README.md (#593) 2020-10-03 23:34:29 +08:00
An Tao 0fe3f6fd8f
Use explicit lambda capture lists (#590) 2020-10-02 11:45:07 +08:00
An Tao 465d2ebfe8
Disable TLS1.0/1.1 on HTTPS by default (#588) 2020-10-01 23:40:46 +08:00
Martin Chang ada35c43fa
Fix failing to connect to DB if parameters contains spaces (#589) 2020-10-01 19:47:51 +08:00
An Tao bbb338bf12
Bump version to 1.0.0 (#584) 2020-09-27 22:51:09 +08:00
an-tao 5bca202c28 Update README 2020-09-20 22:14:37 +08:00
L0ric0 6fca7067da
Add ConfigLoader::ConfigLoader(const Json::Value &data) (#579) 2020-09-18 21:12:46 +08:00
an-tao c320527f9d Delete a confusing log output 2020-09-17 23:12:33 +08:00
An Tao d023743fa3
Fix a bug when creating models in some special cases (#577) 2020-09-17 20:48:16 +08:00
Martin Chang c4ff98e620
remove execution permission on /tmp/drogon.lock (#575) 2020-09-16 00:59:19 +08:00
Elwin.Zhu 3222c0df84
Modify the FileUpload.csp in simple_example to avoid CORS (#573) 2020-09-15 16:20:56 +08:00
An Tao 4c9463eeb7
Modify session handling (#568)
* Change thread unsafe interfaces to safe.

* Fix some compiler warnings
2020-09-15 08:28:04 +08:00
Jiannan Liu 6f7a062221
Suppress sanitizer warning (#572)
Add default initializer for HttpConstraint::method_ member variable to avoid the following warning given by gcc's undefined behavior sanitizer (-fsanitize=undefined):

drogon/lib/inc/drogon/utils/HttpConstraint.h:30:7: runtime error: load of value 32767, which is not a valid value for type 'HttpMethod'
2020-09-14 15:11:53 +08:00
An Tao a32170b9a3
Modify the documentation of the method fileData() (#566) 2020-09-12 13:59:04 +08:00
An Tao 11cabfb546
Remove the useless method stat() from the PluginBase class (#563) 2020-09-10 08:45:23 +08:00
An Tao e032f9bd0e
Add getListeners() method to the HttpAppFramework class (#559) 2020-09-07 00:51:07 +08:00
Martin Chang 3a00ffde47
Add support for status code 418 (#557) 2020-09-03 21:11:25 +08:00
an-tao 19df3afb78 Update trantor 2020-08-27 19:15:14 +08:00
An Tao 4a9ba2088c
Remove the expired std::iterator template (#554) 2020-08-26 20:53:04 +08:00
An Tao a10e6bfb1c
Modify methods related to headers (#552) 2020-08-26 20:28:19 +08:00
An Tao 4d8707df4b
Fix a bug when losting connection to MySQL server during query (#550) 2020-08-25 23:35:07 +08:00
An Tao 7117d96016
Fix an issue of simple_reverse_proxy when handling chunked transfer-e… (#549)
* Fix an issue of simple_reverse_proxy when handling chunked transfer-encoding
2020-08-25 08:07:43 +08:00
an-tao d59021ef9f Bump version to 1.0.0-beta21 2020-08-19 23:18:59 +08:00
An Tao 2aebba9cc1
Fix zlib link error on Windows for the latest vcpkg (#545) 2020-08-19 22:23:47 +08:00
Richard 321405a93a
Fix Chinese readme (#543) 2020-08-17 10:57:18 +08:00
An Tao f1a7462c4c
Modify the Result class in orm (#541) 2020-08-16 20:00:14 +08:00
an-tao f0110a642d Bump version to 1.0.0-beta20 2020-08-15 16:04:10 +08:00
itgenie98 168d2afb17
Fixing bug in drogon_ctl when creating a model, that causes to write the content of the header and sourcefiles multiple times (#540) 2020-08-15 07:14:52 +08:00
An Tao c4d727cbe6
Fix compilation warning of sprintf function (#537) 2020-08-14 08:10:56 +08:00
An Tao 3a10db99c7
Set the response Access-Control-Allow-Headers header correctly for OPTIONS requests (#534) 2020-08-13 21:41:29 +08:00
An Tao 857cacfda7
Fix boost::string_view compilation error of MysqlConnection class (#530) 2020-08-10 09:53:45 +08:00
An Tao 960309e615
Resolve an issue when sending big files (>=2gB) on Windows (#529) 2020-08-09 19:20:51 +08:00