This commit is contained in:
antonio
2020-11-26 14:18:57 +02:00
parent d79b8fe8e0
commit 59487036e9

View File

@@ -71,7 +71,7 @@ func configDefault(cfg Config) Config {
if cfg.Host == "" {
cfg.Host = ConfigDefault.Host
} else {
if !strings.HasPrefix(cfg.Host, "http://") {
if !strings.HasPrefix(cfg.Host, "http") {
panic("the host should start with http:// or https://")
}
}