1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-27 14:41:31 +00:00
Commit Graph

3694 Commits

Author SHA1 Message Date
JessonChan
d8734cf58d set default timeout 2015-05-25 09:10:37 +08:00
JessonChan
51161361db more fixed 2015-05-25 09:10:37 +08:00
JessonChan
6da0cdb9e2 no need lock here 2015-05-25 09:10:37 +08:00
JessonChan
9f070c622b no need defer here 2015-05-25 09:10:37 +08:00
JessonChan
738e22e389 zero timeout means wait until resp 2015-05-25 09:10:37 +08:00
JessonChan
69fc22f0df typo fixed 2015-05-25 09:10:37 +08:00
JessonChan
4cd7177ece typo fixed 2015-05-25 09:10:37 +08:00
JessonChan
8e618192c2 better code and fixed 2015-05-25 09:10:37 +08:00
JessonChan
3415a5b091 better go style 2015-05-25 09:10:37 +08:00
Wyatt Fang
dfe055c47c remove useless comments 2015-05-25 09:10:36 +08:00
Wyatt Fang
74b22649c8 remove the double isStruct/isStructPtr check 2015-05-25 09:10:36 +08:00
Wyatt Fang
4255630564 add Recursively validation 2015-05-25 09:10:36 +08:00
astaxie
7e3b5e5307 remove unreached code 2015-05-25 09:10:36 +08:00
Trần Văn Thanh
0222b8d693 fixed: when RelatedSel have multi string/relation, it only get last string 2015-05-25 09:10:36 +08:00
wuranbo
23268b788a *feature) 增加logcalldepth接口,使得能简单再次封装log系列函数。 2015-05-25 09:10:36 +08:00
astaxie
ee4fd60e4d no output the dump 2015-05-25 09:10:36 +08:00
astaxie
4414659df4 fix the init struct 2015-05-25 09:10:36 +08:00
astaxie
68ccd8e5a4 fix the dump has no body 2015-05-25 09:10:36 +08:00
astaxie
6f802b0a05 fix the params 2015-05-25 09:10:36 +08:00
astaxie
743628a946 add DumpRequest 2015-05-25 09:10:36 +08:00
astaxie
d90ce15707 httplib support gzip 2015-05-25 09:10:36 +08:00
astaxie
23457ed2a0 add sethost 2015-05-25 09:10:36 +08:00
peeped
d7791ba837 Update validators.go
//176 中国联通
//177 中国电信
//145 中国联通
//147 中国移动
//149 中国电信
2015-05-25 09:10:36 +08:00
Lionel Lee
676595213f fix a comment error. 2015-05-25 09:10:36 +08:00
astaxie
d446b5b011 improve the defaultval 2015-05-25 09:10:36 +08:00
astaxie
2ba12ad1e1 config read and set support Runmode 2015-05-25 09:10:35 +08:00
astaxie
8cc57e2fc8 fix #1112 2015-05-25 09:10:35 +08:00
Yongzheng Lai
322b208566 Update session.go
remove = in if statement
2015-05-25 09:10:35 +08:00
Yongzheng Lai
fd610d6777 Update session.go
move expire in line 154 to 247, because it will cause session_cookie not writen to explorer
2015-05-25 09:10:35 +08:00
astaxie
1148359570 session cookie support IE 2015-05-25 09:10:35 +08:00
peeped
55b1d6a897 Update validators.go
edit mobile regular expression ; add 184 Section No.
2015-05-25 09:10:35 +08:00
astaxie
c4c9a50c42 fix #1081 2015-05-25 09:10:35 +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
astaxie
26130a5df6 fix #1073 2015-05-25 09:10:35 +08:00
pylemon
2c9363d29b add tests to ensure bool value require test always return true. 2015-05-25 09:10:35 +08:00
pylemon
91886a4547 bugfix: if a form field type is bool, valid Required should always return true instead of return its value. 2015-05-25 09:10:35 +08:00
Donal Byrne
a7e60c93dc Set ErrorsMap to nil in Validation.Clear function 2015-05-25 09:10:35 +08:00
toalexjin
5b1705b2d6 Do not check log level in writerMsg() because the check is already done outside. 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
toalexjin
2e51c124f1 For enhancing performance, check log level before fmt.Sprintf() 2015-05-25 09:10:35 +08:00
astaxie
1d8afdc9c9 gofmt -s & go_vet 2015-05-25 09:10:34 +08:00
supiyun
1592e9c04d 验证码reload问题
当页面放置一段时间,验证码将从缓存中失效。当用户再来刷新验证码将出现验证码404。对于reload操作应该直接生成验证码。
2015-05-25 09:10:34 +08:00
Hubery
bf6b0d3e1f add JsonBody 2015-05-25 09:10:34 +08:00
astaxie
af71289c25 Merge pull request #1171 from astaxie/add-license
add missed LICENSE of captcha
2015-05-25 09:09:21 +08:00
Liu Peng
b1efae6ff8 add missed LICENSE of captcha 2015-05-24 23:59:39 +08:00
astaxie
92f3de4027 update the string 2015-05-20 11:09:30 +08:00
astaxie
185089299c sync beeApp.Server to graceful 2015-05-20 11:07:23 +08:00
astaxie
59c1e74e13 Merge pull request #1158 from mlgd/master
Fix save config ini file
2015-05-18 22:38:59 +08:00