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
An Tao
fda2719dd4
Fix the session bug introduced in PR #523 ( #528 )
2020-08-06 19:35:30 +08:00
An Tao
80a8f62e30
Change the type of result from the mktime() function in model source code ( #524 )
2020-08-05 20:01:51 +08:00
An Tao
dddc62a9fe
Fix a mysql issue when connections are lost ( #525 )
2020-08-04 20:04:43 +08:00
An Tao
43a21ddc9c
Provide users with a method to change the session ID of a session ( #523 )
2020-08-03 19:18:47 +08:00
An Tao
820715cd62
Set session to requests for websockets ( #521 )
2020-07-31 09:25:20 +08:00
An Tao
5e35055379
Build release version in docker ( #520 )
2020-07-30 16:27:35 +08:00
An Tao
34cefefce4
Modify parseContentType function ( #518 )
2020-07-25 10:01:06 +08:00
An Tao
5bd85170bf
Fix a bug when saving uploaded files on Windows ( #514 )
2020-07-17 13:18:52 +08:00
an-tao
dd66ba5a73
Bump version to 1.0.0-beta19
2020-07-16 21:07:00 +08:00
An Tao
c8640700ea
Add the getJsonError method ( #507 )
...
* Add the getJsonError method to the HttpRequest and the HttpResponse classes
2020-07-09 19:50:30 +08:00
An Tao
9d3efeac67
Optimize the HttpResponse class ( #505 )
2020-07-06 08:39:20 +08:00
An Tao
9c54fb8c69
Modify generation of models and the DbClient class ( #498 )
...
* Add setter method for automatical fields of models
* Put SQL queries into buffer before any connection being established
* Update trantor
2020-07-03 12:19:40 +08:00
An Tao
f871d1607d
Modify static files router and 404 pages generator ( #497 )
...
1.Except for the GET method, it is forbidden to use any other method for accessing static files.
2.Use following sequence to create 404 pages.
* try to use user customized 404 handler;
* try to use user customized error handler;
* use default handler to create 404 pages;
2020-07-02 09:59:17 +08:00
Rick Zhuang
630beed867
Add the header <cctype> to resolve build errors in VS2017 ( #495 )
2020-06-27 11:43:49 +08:00