@@ -3708,12 +3708,16 @@ mod test {
3708
3708
None ,
3709
3709
None ,
3710
3710
None ,
3711
- ) . unwrap ( ) ;
3711
+ )
3712
+ . unwrap ( ) ;
3712
3713
let bucket_http_80 = Bucket :: new ( "test-bucket" , region_http_80, credentials. clone ( ) )
3713
3714
. unwrap ( )
3714
3715
. with_path_style ( ) ;
3715
3716
3716
- let presigned_url_80 = bucket_http_80. presign_get ( "/test.file" , 3600 , None ) . await . unwrap ( ) ;
3717
+ let presigned_url_80 = bucket_http_80
3718
+ . presign_get ( "/test.file" , 3600 , None )
3719
+ . await
3720
+ . unwrap ( ) ;
3717
3721
println ! ( "Presigned URL with port 80: {}" , presigned_url_80) ;
3718
3722
3719
3723
// Port 80 MUST be preserved in the URL for signature validation
@@ -3732,7 +3736,10 @@ mod test {
3732
3736
. unwrap ( )
3733
3737
. with_path_style ( ) ;
3734
3738
3735
- let presigned_url_443 = bucket_https_443. presign_get ( "/test.file" , 3600 , None ) . await . unwrap ( ) ;
3739
+ let presigned_url_443 = bucket_https_443
3740
+ . presign_get ( "/test.file" , 3600 , None )
3741
+ . await
3742
+ . unwrap ( ) ;
3736
3743
println ! ( "Presigned URL with port 443: {}" , presigned_url_443) ;
3737
3744
3738
3745
// Port 443 MUST be preserved in the URL for signature validation
@@ -3751,8 +3758,14 @@ mod test {
3751
3758
. unwrap ( )
3752
3759
. with_path_style ( ) ;
3753
3760
3754
- let presigned_url_9000 = bucket_http_9000. presign_get ( "/test.file" , 3600 , None ) . await . unwrap ( ) ;
3755
- assert ! ( presigned_url_9000. contains( "minio:9000" ) , "Non-standard port should be preserved in URL" ) ;
3761
+ let presigned_url_9000 = bucket_http_9000
3762
+ . presign_get ( "/test.file" , 3600 , None )
3763
+ . await
3764
+ . unwrap ( ) ;
3765
+ assert ! (
3766
+ presigned_url_9000. contains( "minio:9000" ) ,
3767
+ "Non-standard port should be preserved in URL"
3768
+ ) ;
3756
3769
}
3757
3770
3758
3771
#[ maybe_async:: test(
0 commit comments