mirror of
https://github.com/beego/bee.git
synced 2024-11-26 01:11:30 +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.SessionCookieLifeTime", "beego.BConfig.WebConfig.Session.SessionCookieLifeTime",
|
||||||
"beego.SessionAutoSetCookie", "beego.BConfig.WebConfig.Session.SessionAutoSetCookie",
|
"beego.SessionAutoSetCookie", "beego.BConfig.WebConfig.Session.SessionAutoSetCookie",
|
||||||
"beego.SessionDomain", "beego.BConfig.WebConfig.Session.SessionDomain",
|
"beego.SessionDomain", "beego.BConfig.WebConfig.Session.SessionDomain",
|
||||||
|
"Ctx.Input.CopyBody(", "Ctx.Input.CopyBody(beego.BConfig.MaxMemory",
|
||||||
".UrlFor(", ".URLFor(",
|
".UrlFor(", ".URLFor(",
|
||||||
".ServeJson(", ".ServeJSON(",
|
".ServeJson(", ".ServeJSON(",
|
||||||
".ServeXml(", ".ServeXML(",
|
".ServeXml(", ".ServeXML(",
|
||||||
@ -106,6 +107,11 @@ var rules = []string{
|
|||||||
"Ctx.CheckXsrfCookie()", "Ctx.CheckXSRFCookie()",
|
"Ctx.CheckXsrfCookie()", "Ctx.CheckXSRFCookie()",
|
||||||
"session.SessionStore", "session.Store",
|
"session.SessionStore", "session.Store",
|
||||||
".TplNames", ".TplName",
|
".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 {
|
func fixFile(file string) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user