mirror of
https://github.com/beego/bee.git
synced 2024-11-29 11:41:28 +00:00
add more rules for upgrade
This commit is contained in:
parent
c7c811358c
commit
7342e701e5
6
fix.go
6
fix.go
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user