Skip to content

Commit dd6b391

Browse files
committed
feat: #250 Encore remote artifact URL before API call
Signed-off-by: Laurent Broudoux <laurent.broudoux@gmail.com>
1 parent 75035ae commit dd6b391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/microcks/testcontainers/MicrocksContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ private static void downloadArtifact(String microcksContainerHttpEndpoint, Remot
862862
httpConn.setRequestMethod("POST");
863863
httpConn.setDoOutput(true);
864864

865-
String requestBody = "mainArtifact=" + mainArtifact + "&url=" + remoteArtifact.getUrl();
865+
String requestBody = "mainArtifact=" + mainArtifact + "&url=" + URLEncoder.encode(remoteArtifact.getUrl(), StandardCharsets.UTF_8.name());
866866

867867
if (remoteArtifact.getSecretName() != null) {
868868
requestBody += "&secretName=" + remoteArtifact.getSecretName();

0 commit comments

Comments
 (0)