Strip https off host and don't use virtualhost method.

pull/4140/merge
Isaac Connor 2023-02-13 17:27:51 -05:00
parent dedff86511
commit 03b52a1ee5
1 changed files with 2 additions and 0 deletions

View File

@ -666,9 +666,11 @@ sub CopyTo {
require File::Slurp;
my $vendor = undef;
if ($aws_host) {
$aws_host =~ s/^https?:\/\///ig;
$vendor = Net::Amazon::S3::Vendor::Generic->new(
host=>$aws_host,
authorization_method => 'Net::Amazon::S3::Signature::V4',
use_virtual_host => 0,
);
}
my $s3 = Net::Amazon::S3->new( {