Permalink
Browse files

Merge pull request #13 from ronaldxs/patch-3

Update lib/LWP/Simple.pm
  • Loading branch information...
2 parents b6a3b79 + 4a15938 commit 5701072368584aabab2b669befc10df8ed627ab4 @cosimo committed Jul 29, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/LWP/Simple.pm
View
3 lib/LWP/Simple.pm
@@ -153,7 +153,8 @@ method make_request (
$sock.send($req_str);
- my $resp = $sock.recv();
+ # a bit crude w respect to err handling and blocking but ok for now
+ my $resp = ~ gather for $sock.recv() xx * { .bytes ?? take $_ !! last };
$sock.close();
my ($status, $resp_headers, $resp_content) = self.parse_response($resp);

0 comments on commit 5701072

Please sign in to comment.