1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 13:30:56 +00:00
Commit Graph

70 Commits

Author SHA1 Message Date
JessonChan
83ec39d02e refactor max age cookies setting 2015-11-10 11:47:10 +08:00
JessonChan
3872c48349 accept encoding refactor and bug fixed 2015-11-10 10:55:47 +08:00
astaxie
821b2f832e fix the type assert 2015-11-09 11:03:57 +08:00
astaxie
9b725c73c3 Merge pull request #1376 from JessonChan/develop
static file code refactor and bug fixed
2015-11-08 23:21:16 +08:00
astaxie
dc3e324f38 Merge pull request #1418 from ElvizLai/patch-1
Update context.go
2015-11-05 22:39:34 +08:00
Yongzheng Lai
b8fc42d38d Update context.go
all this status was setting in error.go, this line will cause multi-resp
2015-11-05 21:20:57 +08:00
JessonChan
1abf85ed2a simplify the switch code 2015-09-22 15:18:24 +08:00
astaxie
172894efe8 golint session 2015-09-12 22:53:55 +08:00
astaxie
ff5b09fc19 golint context 2015-09-10 15:31:09 +08:00
astaxie
079993b9f7 fix #1245 2015-07-06 13:54:14 +08:00
Lionel Lee
676595213f fix a comment error. 2015-05-25 09:10:36 +08:00
Yongzheng Lai
a311d712a5 Update output.go 2015-05-25 09:10:35 +08:00
Yongzheng Lai
bb5351bb9f Update output.go
fix cookie not work in IE
2015-05-25 09:10:35 +08:00
Donal Byrne
34940d00c0 Remove unnecessary optional group flag '?' since has to match one of comma or end of string 2015-05-25 09:10:35 +08:00
Donal Byrne
1a6ea693b5 Added to input.go: AcceptHtml, AcceptsXml and AcceptsJson functions which check the header agains a regex for simpler mult-content-type handling. 2015-05-25 09:10:35 +08:00
astaxie
e938876c4a fix the cycle import 2015-02-27 00:12:10 +08:00
astaxie
3aceaf8838 error support controller 2015-02-26 23:34:43 +08:00
fuxiaohei
24cf06d288 code style simplify for context package 2015-02-23 11:15:55 +08:00
shuo li
22671c524e Fix subdomain, add test, space and comment fix 2014-12-17 12:06:53 +08:00
Hily Jiang
db04c3cbb4 make Content-Type header more human-readable 2014-11-24 23:12:09 +08:00
astaxie
98dcee0643 Merge pull request #926 from xuewuhen/master
SubDomains function bugfixed
2014-11-23 22:57:40 +08:00
xuewuhen
c9bb9d6a09 SubDomains function bugfixed 2014-11-18 22:54:48 +08:00
astaxie
ecd0a5487e fix the import cycle not allowed 2014-10-30 16:12:54 +08:00
astaxie
fda841208d fix #893 2014-10-30 16:05:48 +08:00
astaxie
d8614e80e7 beego: update the Url to Path 2014-08-30 22:22:23 +08:00
astaxie
80274684e0 context: redirect should writer to response instantly 2014-08-19 09:48:21 +08:00
astaxie
a144769515 update the documents & comments 2014-08-18 16:41:43 +08:00
astaxie
ab71201c96 Merge pull request #741 from smallfish/master
Update ctx.WriteString multiple buf output
2014-08-14 23:56:20 +08:00
smallfish
75e2611cc4 Update ctx.WriteString multiple buf output 2014-08-14 21:37:52 +08:00
astaxie
ee9749d640 beego:fix #685
move XsrfToken& CheckXsrfCookie to context
2014-07-24 23:12:21 +08:00
astaxie
91ee42ceeb beego:update the Abort Status 2014-07-18 15:38:29 +08:00
Christoph Portmann
3bb4d6f013 beego/context: Fix ignored Header in case SetStatus has been called before 2014-07-08 23:24:47 +03:00
astaxie
fefd8ddb5b beego: update licence& fix #669 2014-07-03 23:40:21 +08:00
astaxie
0f170a80da update the comments fix #658 2014-06-25 10:39:37 +08:00
astaxie
0d17d974cd beego: update namespace 2014-05-23 15:56:25 +08:00
astaxie
b45f0b9bf6 beego: fix #478 2014-05-17 02:56:50 +08:00
astaxie
3b9a404138 beego: support other analisys & fix typo 2014-05-17 02:26:50 +08:00
astaxie
c188cbbcb4 update all files License 2014-05-17 02:26:50 +08:00
astaxie
54b92e9599 context:add Bind function
// Bind data from request.Form[key] to dest
// like
/?id=123&isok=true&ft=1.2&ol[0]=1&ol[1]=2&ul[]=str&ul[]=array&user.Name=
astaxie
// var id int  beegoInput.Bind(&id, "id")  id ==123
// var isok bool  beegoInput.Bind(&isok, "isok")  id ==true
// var ft float64  beegoInput.Bind(&ft, "ft")  ft ==1.2
// ol := make([]int, 0, 2)  beegoInput.Bind(&ol, "ol")  ol ==[1 2]
// ul := make([]string, 0, 2)  beegoInput.Bind(&ul, "ul")  ul ==[str
array]
// user struct{Name}  beegoInput.Bind(&user, "user")  user ==
{Name:"astaxie"}
2014-05-17 02:26:50 +08:00
astaxie
e307bd7ba9 beego:hotfix for multipart/form-data 2014-04-15 05:05:53 +08:00
astaxie
a99802b7d1 beego:query data from Form & params 2014-04-10 22:21:08 +08:00
astaxie
73d757e3f4 context: improve the formParse 2014-04-06 00:08:03 +08:00
asta.xie
5588bfc35e support filter to get router. get runController & runMethod 2014-03-29 14:55:34 +08:00
slene
50bc1ef757 rollback: set httponly default is false. 2014-03-17 12:27:04 +08:00
slene
ee889e9975 skip cookie args when value is nil 2014-03-12 15:56:04 +08:00
slene
d8b9db8d3e move SetSecureCookie / GetSecureCookie to *context.Context and alias in Controller 2014-03-12 15:56:04 +08:00
slene
9b498feac7 update output.Cookie 2014-03-12 15:56:04 +08:00
asta.xie
69982c62c8 path default is /
httponly default true
seuce default not set
2014-03-12 15:56:04 +08:00
傅小黑
2d77c4dc49 fix code with no need line 2013-12-26 00:44:49 +08:00
傅小黑
f535916fae add comments for context package. 2013-12-25 20:13:38 +08:00