Skip to content

Commit

Permalink
test SNI support with cpanmin.us
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 9, 2015
1 parent ad844a7 commit 357ec06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/mojo/user_agent_online.t
Expand Up @@ -204,7 +204,9 @@ is $tx->res->code, 200, 'right status';
# HTTPS request that requires SNI
SKIP: {
skip 'SNI support required!', 1 unless IO::Socket::SSL->can_client_sni;
like $ua->get('https://sni.velox.ch')->res->body, qr/Great!/, 'with SNI';
$tx = $ua->get('https://cpanmin.us');
is $tx->res->code, 302, 'right status';
like $tx->res->headers->location, qr/github/, 'right "Location" header';
}

# Fresh user agent again
Expand Down

0 comments on commit 357ec06

Please sign in to comment.