X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=OnlinePayment%2FHTTPS.pm;h=315429797f283eef5b7bb87c0c3b1e4635e7595c;hb=539664e913f52544a705dcbdaee19c8ef10d38e7;hp=ec01b7070d9c3982c75731ebcc93435a9c615ead;hpb=5c233a6249ad27ea91a20315966b84e08f9bf207;p=Business-OnlinePayment.git diff --git a/OnlinePayment/HTTPS.pm b/OnlinePayment/HTTPS.pm index ec01b70..3154297 100644 --- a/OnlinePayment/HTTPS.pm +++ b/OnlinePayment/HTTPS.pm @@ -155,7 +155,10 @@ sub https_get { unless $self->port == 443; $url .= "/$path"; - my $ua = new LWP::UserAgent; + my $ua = new LWP::UserAgent; + foreach my $hdr ( keys %headers ) { + $ua->default_header( $hdr => $headers{$hdr} ); + } my $res = $ua->request( GET($url) ); ( @@ -258,6 +261,9 @@ sub https_post { } my $ua = new LWP::UserAgent; + foreach my $hdr ( keys %headers ) { + $ua->default_header( $hdr => $headers{$hdr} ); + } my $res; if ( ref($post_data) ) {