Skip to content

Commit

Permalink
fix HTTP->HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
cjfields committed Sep 12, 2016
1 parent 025c1c0 commit ed058b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Bio/Tools/EUtilities/EUtilParameters.pm
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ sub get_parameters {
Usage : $string = $pobj->to_string;
Function: Returns string (URL only in this case)
Returns : String (URL only for now)
Args : [optional] 'all'; build URI::http using all parameters
Args : [optional] 'all'; build URI::https using all parameters
Default : Builds based on allowed parameters (presence of history data
or eutil type in %MODE).
Note : Changes state of object. Absolute string
Expand Down Expand Up @@ -604,7 +604,7 @@ sub id_file {
=cut

{
my $HOSTBASE = 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/';
my $HOSTBASE = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/';

sub url_base_address {
my ($self, $address) = @_;
Expand Down
2 changes: 1 addition & 1 deletion lib/Bio/Tools/EUtilities/Link/UrlLink.pm
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ sub get_url {
my $self = shift;
# fix Entrz LinkOut URLS without the full URL
if ($self->{'_url'} && $self->{'_url'} =~ m{^/}) {
$self->{'_url'} = 'http://www.ncbi.nih.gov'.$self->{'_url'};
$self->{'_url'} = 'https://www.ncbi.nih.gov'.$self->{'_url'};
}
return $self->{'_url'};
}
Expand Down

0 comments on commit ed058b3

Please sign in to comment.