145 Commits

Author SHA1 Message Date
Anker Jam
a4f8fbd5a1 add session filter & UT 2021-01-03 00:33:44 +08:00
Anker Jam
41b1833898 make session easier to be configured 2021-01-02 21:55:12 +08:00
Ming Deng
57004d4a7c
Merge pull request #4303 from AllenX2018/fix-issue-3430
fix issue #3430: reverse sequence of generating leaves of router prefix tree
2021-01-02 19:31:28 +08:00
Ming Deng
f6b7543478
Merge pull request #4318 from AllenX2018/fix-issue-4176
Fix issue #4176
2021-01-02 19:10:40 +08:00
Ming Deng
2ffb177868 resolve conflict 2021-01-01 22:34:02 +08:00
Jason li
b82eea08bf fix router:AddMethod logic error, remove unreachable code 2020-12-30 11:19:45 +08:00
Anker Jam
6e4398f7ec add UT for issue 3928 2020-12-26 22:45:56 +08:00
Ming Deng
73d81bafd9 Remove duration from prometheus label 2020-12-26 22:16:17 +08:00
Anker Jam
e597b05c93 fix-3928 2020-12-26 18:38:52 +08:00
AllenX2018
dd35e4b1b2 move route sessionOn calculate to router adding 2020-12-26 17:56:49 +08:00
AllenX2018
3783847dce modify cfg reference 2020-12-26 17:12:42 +08:00
AllenX2018
75849b6d6a Merge branch 'develop' of https://github.com/beego/beego into fix-issue-4176 2020-12-26 16:57:22 +08:00
AllenX2018
0d890d6129 Merge branch 'develop' of https://github.com/astaxie/beego into fix-issue-4176 2020-12-26 16:33:09 +08:00
Ming Deng
c215e37e69 fix 4384 & using commentsRouter as fix name 2020-12-22 20:58:04 +08:00
Ming Deng
ad00897b0f Fix 4365 2020-12-19 21:13:30 +08:00
Ming Deng
aed0453a4a Support session cookie same site option 2020-12-16 23:28:56 +08:00
Ming Deng
385e1d390f update misspell and gofmt 2020-12-14 13:52:26 +08:00
Ming Deng
d4da82ef77 format code 2020-12-14 12:34:55 +08:00
Ming Deng
7bc6010604 rename to v2 2020-12-14 11:12:00 +08:00
Ming Deng
a70f7fc920 using new organization 2020-12-13 23:09:19 +08:00
Ming Deng
198b9cce5f rename key world 'governor' to 'admin' 2020-12-13 19:11:07 +08:00
Ming Deng
aec5f4b3a5 remove flag of XSRF cookie 2020-12-12 23:26:03 +08:00
jianzhiyao
54ab211f00
Merge pull request #4329 from jianzhiyao/fix-3865
fix dot parse in route & delete useless testing file
2020-12-01 11:52:53 +08:00
jianzhiyao
c034d3767a rollback 2020-11-30 20:22:52 +08:00
jianzhiyao
99a47e7644 fix reg_express 2020-11-30 19:27:59 +08:00
Anker Jam
59ca0d063f fix dot parsing result in route & delete useless testing file 2020-11-29 23:39:58 +08:00
Ming Deng
8d7f48ea75 expose more error code in web module 2020-11-29 22:33:03 +08:00
Ming Deng
00ed1c3733 change the globalInstance to read conf/app.conf 2020-11-25 20:16:41 +08:00
AllenX2018
34068e63e6 add test cases for router sessionOn config 2020-11-24 15:58:06 +08:00
AllenX2018
7d7c4539d3 add check of global sessionOn to prevent nil pointer panic: sessionOn of router is set to false while global sessionOn is false 2020-11-24 11:22:07 +08:00
AllenX2018
963de3e68b add SessionOn option for web.Router 2020-11-24 10:15:28 +08:00
AllenX2018
463ec4b085 fix issue #4176: refactor Router with option pattern 2020-11-20 10:43:30 +08:00
AllenX2018
a3d652974b fix issue #3430: reverse sequence of generating leaves of router prefix tree 2020-11-11 09:37:30 +08:00
Ming Deng
b4396c97bb fix init error of global instance 2020-11-05 22:00:43 +08:00
Ming Deng
02234dc503
Merge pull request #4277 from flycash/session
support using json string to init session
2020-10-22 09:53:55 +08:00
Ming Deng
05f4e0c146 support using json string to init session 2020-10-21 22:24:53 +08:00
Ming Deng
7c61eb058f Change NewHttpServer API 2020-10-21 20:54:33 +08:00
Ming Deng
d26683799a add MaxUploadFile to provide more safety uploading controll 2020-10-20 23:36:34 +08:00
Anker Jam
3c48719999 complete condition 2020-10-19 00:22:55 +08:00
Anker Jam
cbb3de741d fix application/x-www-form-urlencoded request body oversize 2020-10-18 23:38:08 +08:00
Anker Jam
c510926cb8 fix 4224:form entity too large casue run out of memory 2020-10-18 23:18:13 +08:00
Ming Deng
c07acaebbc Support unmarshaler 2020-10-14 22:20:25 +08:00
Ming Deng
3fc21ae6ec Upgrade toml version 2020-10-14 00:25:31 +08:00
Ming Deng
2572094a8d remove config API's context parameter 2020-10-13 22:33:39 +08:00
Ming Deng
14c1b76569 remove pkg directory;
remove build directory;
remove githook directory;
2020-10-08 18:29:36 +08:00