Merge branch '3.3.x' into 3.4.x

This commit is contained in:
Moritz Halbritter 2025-03-07 08:21:13 +01:00
commit 282571ae1e

View File

@ -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 {
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();
}