1eb87c5c by astaxie

fix #225

1 parent fb1439df
...@@ -40,7 +40,13 @@ func (input *BeegoInput) Site() string { ...@@ -40,7 +40,13 @@ func (input *BeegoInput) Site() string {
40 } 40 }
41 41
42 func (input *BeegoInput) Scheme() string { 42 func (input *BeegoInput) Scheme() string {
43 return input.req.URL.Scheme 43 if input.req.URL.Scheme != "" {
44 return input.req.URL.Scheme
45 } else if input.req.TLS == nil {
46 return "http"
47 } else {
48 return "https"
49 }
44 } 50 }
45 51
46 func (input *BeegoInput) Domain() string { 52 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!