[core] Skip 443 for port mustache tag (#7531)

This commit is contained in:
William Cheng
2020-10-01 10:30:43 +08:00
committed by GitHub
parent d854c89272
commit 494c02e60f

View File

@@ -775,7 +775,7 @@ public class DefaultGenerator implements Generator {
bundle.put("basePathWithoutHost", basePathWithoutHost);
bundle.put("scheme", URLPathUtils.getScheme(url, config));
bundle.put("host", url.getHost());
if (url.getPort() != 80 ) {
if (url.getPort() != 80 && url.getPort() != 443 ) {
bundle.put("port", url.getPort());
}
bundle.put("contextPath", contextPath);