projects
/
Business-OnlinePayment.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
3.00_07
[Business-OnlinePayment.git]
/
OnlinePayment
/
HTTPS.pm
diff --git
a/OnlinePayment/HTTPS.pm
b/OnlinePayment/HTTPS.pm
index
ec01b70
..
5520e9c
100644
(file)
--- a/
OnlinePayment/HTTPS.pm
+++ b/
OnlinePayment/HTTPS.pm
@@
-6,7
+6,7
@@
use URI::Escape;
use Tie::IxHash;
use base qw(Business::OnlinePayment);
use Tie::IxHash;
use base qw(Business::OnlinePayment);
-$VERSION = '0.0
5
';
+$VERSION = '0.0
6
';
$DEBUG = 0;
BEGIN {
$DEBUG = 0;
BEGIN {
@@
-155,7
+155,10
@@
sub https_get {
unless $self->port == 443;
$url .= "/$path";
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) );
(
my $res = $ua->request( GET($url) );
(
@@
-258,6
+261,9
@@
sub https_post {
}
my $ua = new LWP::UserAgent;
}
my $ua = new LWP::UserAgent;
+ foreach my $hdr ( keys %headers ) {
+ $ua->default_header( $hdr => $headers{$hdr} );
+ }
my $res;
if ( ref($post_data) ) {
my $res;
if ( ref($post_data) ) {