Skip to content

Commit 52f7257

Browse files
sync: update external libs (#540)
Co-authored-by: kononovn <[email protected]>
1 parent b56455c commit 52f7257

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

pkg/schemes/assisted/pkg/validations/validations.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,6 @@ func ValidateHTTPProxyFormat(proxyURL string) error {
138138
if u.Scheme != "http" {
139139
return errors.Errorf("The URL scheme must be http and specified in the URL: '%s'", proxyURL)
140140
}
141-
142-
userName := u.User.Username()
143-
encodedUserName := url.QueryEscape(userName)
144-
if userName != encodedUserName {
145-
return errors.Errorf("The URL '%s' user name '%s' has to be encoded: '%s'", proxyURL, userName, encodedUserName)
146-
}
147-
148-
password, hasPassword := u.User.Password()
149-
if hasPassword {
150-
encodedPassword := url.QueryEscape(password)
151-
if password != encodedPassword {
152-
return errors.Errorf("The URL '%s' password '%s' has to be encoded: '%s'", proxyURL, password, encodedPassword)
153-
}
154-
}
155141
return nil
156142
}
157143

0 commit comments

Comments
 (0)