Commit 1eb87c5c authored by astaxie's avatar astaxie

fix #225

parent fb1439df
......@@ -40,7 +40,13 @@ func (input *BeegoInput) Site() 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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment