Merge pull request #121 from aykhans/feat/config

🔨 Remove default 'http' schema from request URL
This commit is contained in:
aykhans authored and GitHub committed 2025-06-28 23:45:11 +04:00
commit aacb33cfa5
1 file changed
-3
-3
View File
@@ -159,9 +159,6 @@ func (config *Config) Validate() []error {
if utils.IsNilOrZero(config.URL) {
errs = append(errs, errors.New("request URL is required"))
} else {
if config.URL.Scheme == "" {
config.URL.Scheme = "http"
}
if config.URL.Scheme != "http" && config.URL.Scheme != "https" {
errs = append(errs, errors.New("request URL scheme must be http or https"))
}