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() {
9
9
}
10
10
11
11
public FetchLayer url (String remoteUrl ) {
12
- this .publicId = Base64Coder .encodeString (remoteUrl );
12
+ this .publicId = Base64Coder .encodeURLSafeString (remoteUrl ); ;
13
13
return this ;
14
14
}
15
15
Original file line number Diff line number Diff line change @@ -1266,7 +1266,10 @@ public void testOverlayOptions() {
1266
1266
new FetchLayer ().url ("https://test" ),
1267
1267
"fetch:aHR0cHM6Ly90ZXN0" ,
1268
1268
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
+ };
1270
1273
1271
1274
for (int i = 0 ; i < tests .length ; i += 2 ) {
1272
1275
Object layer = tests [i ];
You can’t perform that action at this time.
0 commit comments