@@ -347,8 +347,9 @@ func TestConvertProxyImgMap(t *testing.T) {
347
347
config .ProxyMode = false
348
348
config .Config .ImageMap = map [string ]string {
349
349
"/2" : "../pics/dir1" ,
350
- "/3" : "../pics3" , // Invalid path, does not exists
351
- "www.invalid-path.com" : "https://docs.webp.sh" , // Invalid, it does not start with '/'
350
+ "/3" : "../pics3" , // Invalid path, does not exists
351
+ "/s3" : "https://d1.awsstatic.com" , // AWS S3 bucket for testing query
352
+ "www.invalid-path.com" : "https://docs.webp.sh" , // Invalid, it does not start with '/'
352
353
"/www.weird-path.com" : "https://docs.webp.sh" ,
353
354
"/www.even-more-werid-path.com" : "https://docs.webp.sh/images" ,
354
355
"http://example.com" : "https://docs.webp.sh" ,
@@ -363,6 +364,8 @@ func TestConvertProxyImgMap(t *testing.T) {
363
364
"http://127.0.0.1:3333/www.weird-path.com/images/webp_server.jpg" : "image/webp" ,
364
365
"http://127.0.0.1:3333/www.even-more-werid-path.com/webp_server.jpg" : "image/webp" ,
365
366
"http://example.com//images/webp_server.jpg" : "image/webp" ,
367
+
368
+ "http://127.0.0.1:3333/s3/s3-pdp-redesign/product-page-diagram_Amazon-S3_HIW%402x.ee85671fe5c9ccc2ee5c5352a769d7b03d7c0f16.png" : "image/webp" ,
366
369
}
367
370
368
371
var testUrlsLegacy = map [string ]string {
0 commit comments