Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update lib/LWP/Simple.pm #13

Merged
merged 1 commit into from

2 participants

@ronaldxs

Fix problem getting long documents.

@ronaldxs ronaldxs Update lib/LWP/Simple.pm
Fix problem getting long documents.
4a15938
@cosimo cosimo merged commit 5701072 into cosimo:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 29, 2012
  1. @ronaldxs

    Update lib/LWP/Simple.pm

    ronaldxs authored
    Fix problem getting long documents.
This page is out of date. Refresh to see the latest.
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);
Something went wrong with that request. Please try again.