Skip to content

Commit 494c02e

Browse files
authored
[core] Skip 443 for port mustache tag (#7531)
1 parent d854c89 commit 494c02e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ private Map<String, Object> buildSupportFileBundle(List<Object> allOperations, L
775775
bundle.put("basePathWithoutHost", basePathWithoutHost);
776776
bundle.put("scheme", URLPathUtils.getScheme(url, config));
777777
bundle.put("host", url.getHost());
778-
if (url.getPort() != 80 ) {
778+
if (url.getPort() != 80 && url.getPort() != 443 ) {
779779
bundle.put("port", url.getPort());
780780
}
781781
bundle.put("contextPath", contextPath);

0 commit comments

Comments
 (0)