Merge pull request #121 from aykhans/feat/config

🔨 Remove default 'http' schema from request URL
This commit is contained in:
2025-06-28 23:45:11 +04:00
committed by GitHub

View File

@ -159,9 +159,6 @@ func (config *Config) Validate() []error {
if utils.IsNilOrZero(config.URL) { if utils.IsNilOrZero(config.URL) {
errs = append(errs, errors.New("request URL is required")) errs = append(errs, errors.New("request URL is required"))
} else { } else {
if config.URL.Scheme == "" {
config.URL.Scheme = "http"
}
if config.URL.Scheme != "http" && config.URL.Scheme != "https" { if config.URL.Scheme != "http" && config.URL.Scheme != "https" {
errs = append(errs, errors.New("request URL scheme must be http or https")) errs = append(errs, errors.New("request URL scheme must be http or https"))
} }