@@ -3865,12 +3865,16 @@ mod test {
3865
3865
None ,
3866
3866
None ,
3867
3867
None ,
3868
- ) . unwrap ( ) ;
3868
+ )
3869
+ . unwrap ( ) ;
3869
3870
let bucket_http_80 = Bucket :: new ( "test-bucket" , region_http_80, credentials. clone ( ) )
3870
3871
. unwrap ( )
3871
3872
. with_path_style ( ) ;
3872
3873
3873
- let presigned_url_80 = bucket_http_80. presign_get ( "/test.file" , 3600 , None ) . await . unwrap ( ) ;
3874
+ let presigned_url_80 = bucket_http_80
3875
+ . presign_get ( "/test.file" , 3600 , None )
3876
+ . await
3877
+ . unwrap ( ) ;
3874
3878
println ! ( "Presigned URL with port 80: {}" , presigned_url_80) ;
3875
3879
3876
3880
// Port 80 MUST be preserved in the URL for signature validation
@@ -3889,7 +3893,10 @@ mod test {
3889
3893
. unwrap ( )
3890
3894
. with_path_style ( ) ;
3891
3895
3892
- let presigned_url_443 = bucket_https_443. presign_get ( "/test.file" , 3600 , None ) . await . unwrap ( ) ;
3896
+ let presigned_url_443 = bucket_https_443
3897
+ . presign_get ( "/test.file" , 3600 , None )
3898
+ . await
3899
+ . unwrap ( ) ;
3893
3900
println ! ( "Presigned URL with port 443: {}" , presigned_url_443) ;
3894
3901
3895
3902
// Port 443 MUST be preserved in the URL for signature validation
@@ -3908,8 +3915,14 @@ mod test {
3908
3915
. unwrap ( )
3909
3916
. with_path_style ( ) ;
3910
3917
3911
- let presigned_url_9000 = bucket_http_9000. presign_get ( "/test.file" , 3600 , None ) . await . unwrap ( ) ;
3912
- assert ! ( presigned_url_9000. contains( "minio:9000" ) , "Non-standard port should be preserved in URL" ) ;
3918
+ let presigned_url_9000 = bucket_http_9000
3919
+ . presign_get ( "/test.file" , 3600 , None )
3920
+ . await
3921
+ . unwrap ( ) ;
3922
+ assert ! (
3923
+ presigned_url_9000. contains( "minio:9000" ) ,
3924
+ "Non-standard port should be preserved in URL"
3925
+ ) ;
3913
3926
}
3914
3927
3915
3928
#[ maybe_async:: test(
0 commit comments