1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-07 02:10:17 +00:00

beego: remove app funciont & fix #590

config := tls.Config{
    ClientAuth: tls.RequireAndVerifyClientCert,
    Certificates: []tls.Certificate{cert},
    ClientCAs: pool,
}
config.Rand = rand.Reader

beego.BeeApp.Server. TLSConfig = &config
This commit is contained in:
astaxie
2014-05-20 17:28:06 +08:00
parent 04290dfc68
commit 33ad6c1370
3 changed files with 50 additions and 174 deletions

View File

@ -202,7 +202,7 @@ func Htmlunquote(src string) string {
//
// more detail http://beego.me/docs/mvc/controller/urlbuilding.md
func UrlFor(endpoint string, values ...string) string {
return BeeApp.UrlFor(endpoint, values...)
return BeeApp.Handlers.UrlFor(endpoint, values...)
}
// returns script tag with src string.