File tree 2 files changed +6
-3
lines changed
lib/Search/Elasticsearch/Cxn
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,11 @@ sub perform_request {
28
28
$headers {' Content-Encoding' } = $params -> {encoding }
29
29
if $params -> {encoding };
30
30
}
31
-
32
31
my $request = HTTP::Request-> new(
33
32
$method => $uri ,
34
33
[ %headers , %{ $self -> default_headers }, ],
35
34
$params -> {data }
36
35
);
37
-
38
36
my $ua = $self -> handle;
39
37
my $timeout = $params -> {timeout } || $self -> request_timeout;
40
38
if ( $timeout ne $ua -> timeout ) {
@@ -76,7 +74,7 @@ sub _build_handle {
76
74
$args {ssl_opts }
77
75
= $self -> has_ssl_options
78
76
? $self -> ssl_options
79
- : { verify_hostname => 0 };
77
+ : { verify_hostname => 0, SSL_verify_mode => 0x00 };
80
78
}
81
79
return LWP::UserAgent-> new( %args , %{ $self -> handle_args } );
82
80
}
Original file line number Diff line number Diff line change
1
+ use Test::More;
1
2
use lib ' t/lib' ;
2
3
4
+ if ($ENV {ES } =~ / https/ ) {
5
+ plan skip_all => ' Hijk does not support SSL' ;
6
+ }
3
7
$ENV {ES_VERSION } = ' 6_0' ;
4
8
$ENV {ES_CXN } = ' Hijk' ;
5
9
do " es_sync_fork.pl" or die ( $@ || $! );
6
10
11
+ done_testing;
You can’t perform that action at this time.
0 commit comments