Skip to content

Commit

Permalink
Add verify_SSL=>1 to HTTP::Tiny to verify https server identity
Browse files Browse the repository at this point in the history
  • Loading branch information
stigtsp authored and bluefeet committed Jun 7, 2023
1 parent 09434a3 commit 02a2862
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/GitLab/API/v4/RESTClient.pm
Expand Up @@ -102,7 +102,7 @@ has http_tiny => (
isa => InstanceOf[ 'HTTP::Tiny' ],
);
sub _build_http_tiny {
return HTTP::Tiny->new();
return HTTP::Tiny->new( verify_SSL => 1 );
}

has json => (
Expand Down
2 changes: 2 additions & 0 deletions lib/GitLab/API/v4/WWWClient.pm
Expand Up @@ -81,6 +81,7 @@ sub sign_in {
my ($self, $username, $password) = @_;

my $tiny = HTTP::Tiny->new(
verify_SSL => 1,
max_redirect => 0,
);

Expand Down Expand Up @@ -165,6 +166,7 @@ sub get {
my ($self, $path) = @_;

my $tiny = HTTP::Tiny->new(
verify_SSL => 1,
max_redirect => 0,
);

Expand Down

0 comments on commit 02a2862

Please sign in to comment.