mschilli / net-google-drive-simple

Net::Google::Drive::Simple CPAN Module
Other
11 stars 22 forks source link

Make sure Crypt::SSLeay will not be used #52

Closed xsawyerx closed 2 years ago

xsawyerx commented 2 years ago

If you have both LWP::Protocol::https installed, Crypt:SSLeay will not be used.

LWP::UserAgent loads LWP::Protocol::https if it's installed. Since it's a dependency, it's installed. LWP::Protocol::https has a dependency on IO::Socket::SSL, so it will be picked up instead of Crypt::SSLeay.

I verified this with the following code in the t/001Basic.t test using the LIVE_TEST option:

BEGIN {
    unshift @INC, sub {
        print STDERR "Loaded $_[1]\n";
    };
}
xsawyerx commented 2 years ago

This resolves GH #51.