1
0
mirror of https://github.com/beego/bee.git synced 2024-11-25 20:10:55 +00:00

add more rules for upgrade

This commit is contained in:
astaxie 2016-01-08 10:50:52 +08:00
parent c7c811358c
commit 7342e701e5

6
fix.go
View File

@ -85,6 +85,7 @@ var rules = []string{
"beego.SessionCookieLifeTime", "beego.BConfig.WebConfig.Session.SessionCookieLifeTime",
"beego.SessionAutoSetCookie", "beego.BConfig.WebConfig.Session.SessionAutoSetCookie",
"beego.SessionDomain", "beego.BConfig.WebConfig.Session.SessionDomain",
"Ctx.Input.CopyBody(", "Ctx.Input.CopyBody(beego.BConfig.MaxMemory",
".UrlFor(", ".URLFor(",
".ServeJson(", ".ServeJSON(",
".ServeXml(", ".ServeXML(",
@ -106,6 +107,11 @@ var rules = []string{
"Ctx.CheckXsrfCookie()", "Ctx.CheckXSRFCookie()",
"session.SessionStore", "session.Store",
".TplNames", ".TplName",
"swagger.ApiRef", "swagger.APIRef",
"swagger.ApiDeclaration", "swagger.APIDeclaration",
"swagger.Api", "swagger.API",
"swagger.ApiRef", "swagger.APIRef",
"toolbox.UrlMap", "toolbox.URLMap",
}
func fixFile(file string) error {