mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 19:00:55 +00:00
fix #225
This commit is contained in:
parent
fb1439dfb9
commit
1eb87c5c59
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user