From 4a7db48351e05942a884130016099f1663f026b1 Mon Sep 17 00:00:00 2001 From: Aykhan Shahsuvarov Date: Sat, 28 Jun 2025 23:44:04 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Remove=20default=20'http'=20sche?= =?UTF-8?q?ma=20from=20request=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/config/config.go b/config/config.go index 8d5703a..acb7314 100644 --- a/config/config.go +++ b/config/config.go @@ -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")) }