Follow-up fix, checking also "ws" and port 80 case
See gh-27097
This commit is contained in:
@@ -881,7 +881,8 @@ public class UriComponentsBuilder implements UriBuilder, Cloneable {
|
||||
"with the removeOnly=true. Request headers: " + headers);
|
||||
}
|
||||
|
||||
if (this.scheme != null && ((this.scheme.equals("http") && "80".equals(this.port)) ||
|
||||
if (this.scheme != null &&
|
||||
(((this.scheme.equals("http") || this.scheme.equals("ws")) && "80".equals(this.port)) ||
|
||||
((this.scheme.equals("https") || this.scheme.equals("wss")) && "443".equals(this.port)))) {
|
||||
port(null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user