eyalpost
9aedb4d05a
phase #1
2017-04-21 15:26:41 +03:00
awengo
8a2b697625
Add http methods
2017-02-10 17:45:47 +09:00
astaxie
90999717dd
Merge branch 'develop'
2016-12-05 23:14:26 +08:00
Maxim Sukharev
683e6856ef
Add RouterPattern to context.Input
...
Right now beego adds this param only in dev mode, but I noticed that it's very useful to have in prod environment to.
My current use case - filter that sends logs in newrelic. Pattern there will help a lot to generate correct transaction name.
2016-10-28 10:44:16 +07:00
olegdemchenko
0be05eb47c
policies implementation
2016-09-28 21:21:07 +03:00
astaxie
868e14b8ba
fix #2017
2016-09-15 20:04:45 +08:00
astaxie
421bf97b84
Support custome recover func fix #2004
2016-09-15 12:16:24 +08:00
astaxie
2b7dd85b92
access log add client request ip
2016-09-15 10:58:46 +08:00
astaxie
dd0f05b1f1
fix the method color
2016-09-11 22:00:14 +08:00
astaxie
7760d24761
fix the typo
2016-08-17 23:52:34 +08:00
dan pittman
0e786fa4af
adds ability to reset params after a filter runs
...
When a filter is run _after_ the router completes, it's input params,
such as `":splat"` will have been overwritten by the filter's router pass.
This commit adds the ability to tell the router to revert to the previous input
params after running a filter.
2016-08-07 07:44:30 -07:00
astaxie
3ca68f9e30
Merge pull request #1976 from ysqi/develop
...
Fxied bug and Optimized code
2016-08-02 09:58:58 +08:00
Faissal Elamraoui
479dfdbd40
added support for Windows terminals
2016-06-24 15:38:18 +02:00
Faissal Elamraoui
2bd743fcff
Enhanced logging during DEV mode
2016-06-17 15:56:52 +02:00
ysqi
2c1cea08dd
New func to find router info for context
2016-06-05 14:03:20 +08:00
ysqi
b807362c39
Reset
2016-06-01 20:33:10 +08:00
ysqi
d9b05e6b3f
Print complete URL after running
2016-06-01 20:18:11 +08:00
JessonChan
98dfecfd8a
change beego log function to logs function
2016-03-24 17:39:29 +08:00
astaxie
6c0979c314
Merge pull request #1805 from JessonChan/abort_panic_bug
...
Abort panic bug
2016-03-23 10:22:32 +08:00
JessonChan
0859ec570c
refactor of error response and fix err code bug
2016-03-17 09:46:34 +08:00
JessonChan
94599013fc
url to lower case
2016-03-16 07:53:36 +08:00
JessonChan
565c4a4d59
make the code run more fast
2016-03-15 18:50:18 +08:00
JessonChan
34615ee8fc
add router filter enable flag
2016-03-15 18:37:54 +08:00
JessonChan
c51bc86d3f
goto bug fixed
2016-03-15 16:51:21 +08:00
JessonChan
8660a54fac
make router fast
2016-03-15 11:49:23 +08:00
astaxie
c8bbfb75f0
Merge pull request #1782 from JessonChan/some_wip
...
BeeLogger can be the writer of http server's log
2016-03-14 14:47:29 +08:00
astaxie
d90195061f
fix #1783
2016-03-13 11:16:19 +08:00
JessonChan
9872041f12
timeDur is used only when need
2016-03-11 14:14:58 +08:00
JessonChan
8c37e76503
the net/http should set header first,the set http status code and then write the content
2016-02-24 14:14:16 +08:00
JessonChan
76d69b6e51
prevent auto detect of content-type
...
https://golang.org/src/net/http/server.go#L1031
2016-02-24 10:34:20 +08:00
nemtsevp
93b04e8a3b
Exceptions in controller methods
...
Exceptions in methods names should be changed according to controller.go
2016-01-21 09:44:17 +03:00
astaxie
23bb36d35c
fix the issue #1573
2016-01-18 23:29:56 +08:00
astaxie
fa8f6e5a53
session destroy
2016-01-18 16:11:27 +08:00
youngsterxyf
ac3b013de7
DRY
2016-01-18 15:17:42 +08:00
astaxie
f925bb9058
golint all the files
2016-01-18 00:18:21 +08:00
astaxie
6660720ce6
update some config name
2016-01-12 21:55:02 +08:00
astaxie
73168d2f7d
Merge pull request #1527 from JessonChan/develop
...
reuse compress writer
2016-01-04 14:36:40 +08:00
JessonChan
fd2ded190b
EnableGzip bug fixed
2016-01-04 09:27:58 +08:00
astaxie
6585e66f97
all the browser should support delete and put now
2016-01-03 20:36:16 +08:00
JessonChan
3ebf275157
fixed camel style name
2016-01-03 15:40:44 +08:00
Vitaly Velikodny
48fd9675ad
Refactoring: Move dev & prod runmodes to const
2015-12-29 21:32:37 +03:00
astaxie
2aa50c240f
Merge pull request #1486 from KilledKenny/oomDos
...
Added MaxMemory limit to CopyBody() Supersedes #1484
2015-12-16 23:44:42 +08:00
astaxie
29752e2575
refactor router
2015-12-16 23:11:03 +08:00
Simon Rawet
52c4c1fb98
Added MaxMemory limit to CopyBody()
...
Beego only uses the MaxMemory flag when using go's built in functions
for parsing forms. However the CopyBody() function have no limit an will
coppy anny amount of data into memory using ioutil.ReedAll() on the
request body whitout anny size validation or limit.
This fix wrapps input.Requst.Body in a LimitedReader using the same
memory limit as ParseFormOrMulitForm()
2015-12-16 10:37:21 +01:00
astaxie
2b651fbae2
reuse map in tree.Match
2015-12-11 13:51:01 +08:00
astaxie
80bc372f17
pool.Put
2015-12-11 00:20:17 +08:00
astaxie
f70f338025
use sync.Pool to reuse Context
2015-12-10 21:59:54 +08:00
astaxie
be60f47488
Merge pull request #1455 from nkbai/develop
...
windows下静态文件映射找不到问题以及 grace init延后
2015-12-09 23:44:45 +08:00
astaxie
d1bba02958
refact beego config
2015-12-09 23:35:04 +08:00
nkbai
ff0762cc19
Merge remote-tracking branch 'upstream/develop' into develop
2015-12-03 15:50:21 +08:00