From e5a607db871119e036d93303a76a3ebd8603544d Mon Sep 17 00:00:00 2001 From: Peter Oliver Date: Fri, 11 Dec 2020 13:57:08 +0000 Subject: [PATCH] HTTPS by default These URLs all get redirected from HTTP to HTTPS by MusicBrainz, so we might as well save ourselves a round trip by using HTTPS in the first place. --- lib/WebService/MusicBrainz.pm | 2 +- lib/WebService/MusicBrainz/Request.pm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/WebService/MusicBrainz.pm b/lib/WebService/MusicBrainz.pm index 32d9744..dc316fe 100644 --- a/lib/WebService/MusicBrainz.pm +++ b/lib/WebService/MusicBrainz.pm @@ -289,7 +289,7 @@ it under the same terms as Perl itself. =head1 SEE ALSO -http://musicbrainz.org/doc/Development/XML_Web_Service/Version_2 +https://musicbrainz.org/doc/MusicBrainz_API =cut diff --git a/lib/WebService/MusicBrainz/Request.pm b/lib/WebService/MusicBrainz/Request.pm index e52bed3..2d9a8e7 100644 --- a/lib/WebService/MusicBrainz/Request.pm +++ b/lib/WebService/MusicBrainz/Request.pm @@ -5,7 +5,7 @@ use Mojo::UserAgent; use Mojo::URL; use Mojo::Util qw/dumper/; -has url_base => 'http://musicbrainz.org/ws/2'; +has url_base => 'https://musicbrainz.org/ws/2'; has ua => sub { Mojo::UserAgent->new() }; has 'format' => 'json'; has 'search_resource'; @@ -114,7 +114,7 @@ it under the same terms as Perl itself. =head1 SEE ALSO -http://wiki.musicbrainz.org/XMLWebService +https://wiki.musicbrainz.org/XMLWebService =cut