1eb87c5c by astaxie

fix #225

1 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 {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!