Browse Source

Merge branch '3.3.x' into 3.4.x

pull/44789/head
Moritz Halbritter 11 months ago
parent
commit
282571ae1e
  1. 10
      spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/DockerApi.java

10
spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/DockerApi.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2024 the original author or authors.
* Copyright 2012-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -136,9 +136,11 @@ public class DockerApi { @@ -136,9 +136,11 @@ public class DockerApi {
verifyApiVersion(apiVersion);
try {
URIBuilder builder = new URIBuilder("/v" + apiVersion + path);
int param = 0;
while (param < params.length) {
builder.addParameter(Objects.toString(params[param++]), Objects.toString(params[param++]));
if (params != null) {
int param = 0;
while (param < params.length) {
builder.addParameter(Objects.toString(params[param++]), Objects.toString(params[param++]));
}
}
return builder.build();
}

Loading…
Cancel
Save