Skip to content

Commit

Permalink
Str instead of as_string
Browse files Browse the repository at this point in the history
  • Loading branch information
sergot committed May 27, 2014
1 parent b4d35d3 commit 22ff0b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/LWP/UserAgent.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ method get(Str $url) {
my $conn = IO::Socket::INET.new(host => $request.header('Host'), port => 80, timeout => $.timeout);

my $s;
if $conn.send($request.as_string) {
if $conn.send($request.Str) {
$s = $conn.lines.join("\n");
}

Expand Down
4 changes: 2 additions & 2 deletions lwp.p6
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ my $req = HTTP::Request.new( GET => "http://$url/$file" );

say 'Request:';
say $req.perl;
my $req_as_string = $req.as_string;
my $req_as_string = $req.Str;
say $req_as_string.perl;

say '--';
Expand Down Expand Up @@ -38,4 +38,4 @@ say $response.perl;

say '--';
say 'get():';
say $response.as_string;
say $response.Str;

0 comments on commit 22ff0b8

Please sign in to comment.