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