The url parsing is treating URLs without schemes
as paths rather than hosts.
} else {
fallbackProtocol = "ip6"
}
+ if !strings.HasPrefix(target, "http://") && !strings.HasPrefix(target, "https://") {
+ target = "http://" + target
+ }
dialProtocol = module.HTTP.Protocol
if module.HTTP.Protocol == "tcp" {
return nil
}
- if !strings.HasPrefix(target, "http://") && !strings.HasPrefix(target, "https://") {
- target = "http://" + target
- }
if config.Method == "" {
config.Method = "GET"
}