Allow WebGUI::Cache and all consumers to fetch SSL URLs, but not verify the certificates.

This commit is contained in:
colin 2017-07-19 20:06:46 -07:00
parent c75ef5e044
commit d760289918
2 changed files with 2 additions and 1 deletions

View file

@ -230,7 +230,7 @@ sub setByHTTP {
my $self = shift;
my $url = shift;
my $ttl = shift;
my $userAgent = LWP::UserAgent->new();
my $userAgent = LWP::UserAgent->new(ssl_opts => { verify_hostname => 0, }, );
$userAgent->env_proxy;
$userAgent->agent("WebGUI/".$WebGUI::VERSION);
$userAgent->timeout(30);