Skip to content

Commit 2387423

Browse files
authored
Fix secure http detection in OpenAPI (#1002)
1 parent 97ad73b commit 2387423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/binding-openapi/src/main/java/io/aklivity/zilla/runtime/binding/openapi/internal/config/OpenapiClientNamespaceGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public NamespaceConfig generate(
6363
.collect(Collectors.toList()));
6464

6565
final int[] httpsPorts = resolvePortsForScheme("https", servers);
66-
final boolean secure = httpsPorts != null;
66+
final boolean secure = httpsPorts.length != 0;
6767

6868
return NamespaceConfig.builder()
6969
.name(String.format(binding.qname, "$composite"))

0 commit comments

Comments
 (0)