com.dtflys.forest.http.ForestURL#getAuthority
...
if (URLUtils.isNotNonePort(port) &&
((port != 80 && port != 443 && port > -1) ||
(port == 80 && !ssl) ||
(port == 443 && !ssl))) {
builder.append(':').append(port);
}
....
In this method, there is a if condition that I'm confused, from my knowledge, port 443 is for https , so why port == 443 && !ssl。
请原谅我的装x,我想问为啥443端口是非ssl的条件,是不是写错了
com.dtflys.forest.http.ForestURL#getAuthority ... if (URLUtils.isNotNonePort(port) && ((port != 80 && port != 443 && port > -1) || (port == 80 && !ssl) || (port == 443 && !ssl))) { builder.append(':').append(port); } .... In this method, there is a if condition that I'm confused, from my knowledge, port 443 is for https , so why port == 443 && !ssl。 请原谅我的装x,我想问为啥443端口是非ssl的条件,是不是写错了