Skip to content

Commit

Permalink
allows to test https service (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
avgur authored and luza committed Sep 4, 2019
1 parent 13e66a2 commit f6935da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func main() {
if config.Host == "" {
log.Fatal(errors.New("service hostname not provided"))
} else {
if !strings.HasPrefix(config.Host, "http://") {
if !strings.HasPrefix(config.Host, "http://") && !strings.HasPrefix(config.Host, "https://") {
config.Host = "http://" + config.Host
}
config.Host = strings.TrimRight(config.Host, "/")
Expand Down

0 comments on commit f6935da

Please sign in to comment.