Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Socket.send is now .print
  • Loading branch information
moritz committed Sep 19, 2015
1 parent 0304600 commit 06f75c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/build/panda-state.p6
Expand Up @@ -41,7 +41,7 @@ sub fetch-projects-json($to) {
else {
$s = IO::Socket::INET.new(:host<ecosystem-api.p6c.org>, :port(80));
}
$s.send("GET http://ecosystem-api.p6c.org/projects.json HTTP/1.1\nHost: ecosystem-api.p6c.org\nAccept: */*\nConnection: Close\n\n");
$s.print("GET http://ecosystem-api.p6c.org/projects.json HTTP/1.1\nHost: ecosystem-api.p6c.org\nAccept: */*\nConnection: Close\n\n");
my ($buf, $g) = '';
$buf ~= $g while $g = $s.get;

Expand Down

0 comments on commit 06f75c4

Please sign in to comment.