1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 18:40:55 +00:00
This commit is contained in:
astaxie 2013-09-26 22:31:39 +08:00
parent fb1439dfb9
commit 1eb87c5c59

View File

@ -40,7 +40,13 @@ func (input *BeegoInput) Site() string {
} }
func (input *BeegoInput) Scheme() string { func (input *BeegoInput) Scheme() string {
return input.req.URL.Scheme if input.req.URL.Scheme != "" {
return input.req.URL.Scheme
} else if input.req.TLS == nil {
return "http"
} else {
return "https"
}
} }
func (input *BeegoInput) Domain() string { func (input *BeegoInput) Domain() string {