- Timestamp:
- 2017-08-09T16:48:21+12:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/downloaders/WgetDownload.pm
r31856 r31860 70 70 'type' => "string", 71 71 'reqd' => "no", 72 'hiddengli' => "yes"}]; 72 'hiddengli' => "yes"}, 73 { 'name' => "no_check_certificate", 74 'desc' => "{WgetDownload.no_check_certificate}", 75 'type' => "flag", 76 'reqd' => "no", 77 'hiddengli' => "yes"} 78 ]; 73 79 74 80 my $options = { 'name' => "WgetDownload", … … 183 189 } 184 190 185 if($self->{'no_check_certificate'} && $self->{'url'} =~ m/^https\:/) { 186 $strOptions .= " --no-check-certificate "; 187 } 191 if($self->{'no_check_certificate'}) { #&& $self->{'url'} =~ m/^https\:/) { # URL may be http that gets redirected to https 192 193 $strOptions .= " --no-check-certificate "; 194 } 188 195 189 196 return $strOptions;
Note:
See TracChangeset
for help on using the changeset viewer.