mirror of
https://github.com/astaxie/beego.git
synced 2025-07-04 09:30:17 +00:00
code style simplify for context package
This commit is contained in:
@ -72,11 +72,11 @@ func (input *BeegoInput) Site() string {
|
||||
func (input *BeegoInput) Scheme() string {
|
||||
if input.Request.URL.Scheme != "" {
|
||||
return input.Request.URL.Scheme
|
||||
} else if input.Request.TLS == nil {
|
||||
return "http"
|
||||
} else {
|
||||
return "https"
|
||||
}
|
||||
if input.Request.TLS == nil {
|
||||
return "http"
|
||||
}
|
||||
return "https"
|
||||
}
|
||||
|
||||
// Domain returns host name.
|
||||
|
Reference in New Issue
Block a user