An error occurs when requesting an URL with username+password, when the password contains a question mark:
my $ua = Mojo::UserAgent->new;
say $ua->get('https://username:some?password@www.text.com')->res->body;
Expected behavior
Download of ressource should succeed
Actual behavior
An exception occurs
Can't connect: Servname not supported for ai_socktype
Mojo::IOLoop::__ANON__('Mojo::IOLoop::Client=HASH(0x55666fc45870)') called at /opt/gh/perl-current-live/local-default/lib/perl5/Mojo/EventEmitter.pm line 15 called by Mojo::EventEmitter::emit('Mojo::IOLoop::Client=HASH(0x55666fc45870)', 'error', 'Can\'t connect: Servname not supported for ai_socktype') called at /opt/gh/perl-current-live/local-default/lib/perl5/Mojo/IOLoop/Client.pm line 92
Steps to reproduce the behavior
An error occurs when requesting an URL with username+password, when the password contains a question mark:
Expected behavior
Download of ressource should succeed
Actual behavior
An exception occurs