fix #225
Showing
1 changed file
with
6 additions
and
0 deletions
| ... | @@ -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 | if input.req.URL.Scheme != "" { | ||
| 43 | return 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 { | ... | ... |
-
Please register or sign in to post a comment