Skip to content

Commit

Permalink
Update lib/LWP/Simple.pm
Browse files Browse the repository at this point in the history
Fix problem getting long documents.
  • Loading branch information
ronaldxs committed Jul 29, 2012
1 parent 7dccaff commit 4a15938
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/LWP/Simple.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4a15938

Please sign in to comment.