@@ -347,8 +347,9 @@ func TestConvertProxyImgMap(t *testing.T) {
347347 config .ProxyMode = false
348348 config .Config .ImageMap = map [string ]string {
349349 "/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 '/'
352353 "/www.weird-path.com" : "https://docs.webp.sh" ,
353354 "/www.even-more-werid-path.com" : "https://docs.webp.sh/images" ,
354355 "http://example.com" : "https://docs.webp.sh" ,
@@ -363,6 +364,8 @@ func TestConvertProxyImgMap(t *testing.T) {
363364 "http://127.0.0.1:3333/www.weird-path.com/images/webp_server.jpg" : "image/webp" ,
364365 "http://127.0.0.1:3333/www.even-more-werid-path.com/webp_server.jpg" : "image/webp" ,
365366 "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" ,
366369 }
367370
368371 var testUrlsLegacy = map [string ]string {
0 commit comments