Skip to content

Commit

Permalink
Switch ecosytem API host to p6c.org
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadeusz Sośnierz committed Dec 11, 2014
1 parent 69f83fe commit 9fe5154
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Panda/Ecosystem.pm
Expand Up @@ -69,11 +69,11 @@ class Panda::Ecosystem {
if %*ENV<http_proxy> {
my ($host, $port) = %*ENV<http_proxy>.split('/').[2].split(':');
$s = IO::Socket::INET.new(host=>$host, port=>$port.Int);
$s.send("GET http://feather.perl6.nl:3000/projects.json HTTP/1.1\nHost: feather.perl6.nl\nAccept: */*\nConnection: Close\n\n");
$s.send("GET http://ecosystem-api.p6c.org/projects.json HTTP/1.1\nHost: ecosystem-api.p6c.org\nAccept: */*\nConnection: Close\n\n");
}
else {
$s = IO::Socket::INET.new(:host<feather.perl6.nl>, :port(3000));
$s.send("GET /projects.json HTTP/1.0\n\n");
$s = IO::Socket::INET.new(:host<ecosystem-api.p6c.org>, :port(80));
$s.send("GET /projects.json HTTP/1.0\nHost: ecosystem-api.p6c.org\n\n");
}
my ($buf, $g) = '';
$buf ~= $g while $g = $s.get;
Expand Down

0 comments on commit 9fe5154

Please sign in to comment.