mirror of
https://github.com/aykhans/dodo.git
synced 2025-07-01 07:57:48 +00:00
🔨 Remove default 'http' schema from request URL
This commit is contained in:
@ -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"))
|
||||
}
|
||||
|
Reference in New Issue
Block a user