Go-E: ensure default scheme
This commit is contained in:
parent
d6be9672f8
commit
1b358a89a8
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ func NewGoE(uri, token string, cache time.Duration) (api.Charger, error) {
|
|||
if token != "" {
|
||||
c.api = goe.NewCloud(log, token, cache)
|
||||
} else {
|
||||
c.api = goe.NewLocal(log, uri)
|
||||
c.api = goe.NewLocal(log, util.DefaultScheme("http", uri))
|
||||
}
|
||||
|
||||
if c.api.IsV2() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue