Skip to content

Commit

Permalink
slightly more consistent examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 8, 2015
1 parent 5da1865 commit 6c62018
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/UserAgent.pm
Expand Up @@ -394,10 +394,10 @@ Mojo::UserAgent - Non-blocking I/O HTTP and WebSocket user agent
my $tx
= $ua->put('[::1]:3000' => {'Content-Type' => 'text/plain'} => 'Hello!');
# Follow redirects to grab the latest Mojolicious release :)
# Follow redirects to download Mojolicious from GitHub
$ua->max_redirects(5)
->get('https://www.github.com/kraih/mojo/tarball/master')
->res->content->asset->move_to('/Users/sri/mojo.tar.gz');
->res->content->asset->move_to('/home/sri/mojo.tar.gz');
# TLS certificate authentication and JSON POST
my $tx = $ua->cert('tls.crt')->key('tls.key')
Expand Down

0 comments on commit 6c62018

Please sign in to comment.