File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
main/java/com/cloudinary/transformation
test/java/com/cloudinary/test Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public FetchLayer() {
99 }
1010
1111 public FetchLayer url (String remoteUrl ) {
12- this .publicId = Base64Coder .encodeString (remoteUrl );
12+ this .publicId = Base64Coder .encodeURLSafeString (remoteUrl ); ;
1313 return this ;
1414 }
1515
Original file line number Diff line number Diff line change @@ -1266,7 +1266,10 @@ public void testOverlayOptions() {
12661266 new FetchLayer ().url ("https://test" ),
12671267 "fetch:aHR0cHM6Ly90ZXN0" ,
12681268 new FetchLayer ().url ("https://test" ).resourceType ("video" ),
1269- "video:fetch:aHR0cHM6Ly90ZXN0" };
1269+ "video:fetch:aHR0cHM6Ly90ZXN0" ,
1270+ new FetchLayer ().url ("https://www.test.com/test/JE01118-YGP900_1_lar.jpg?version=432023" ),
1271+ "fetch:aHR0cHM6Ly93d3cudGVzdC5jb20vdGVzdC9KRTAxMTE4LVlHUDkwMF8xX2xhci5qcGc_dmVyc2lvbj00MzIwMjM="
1272+ };
12701273
12711274 for (int i = 0 ; i < tests .length ; i += 2 ) {
12721275 Object layer = tests [i ];
You can’t perform that action at this time.
0 commit comments