Skip to content

Commit

Permalink
[Web::Handler::HTTPDaemon] compensate for Rakudo fix
Browse files Browse the repository at this point in the history
It's no longer Callable &app, just &app. Rakudo used to get this wrong,
but now it gets it right, so we must, too.
  • Loading branch information
Carl Masak committed Oct 12, 2009
1 parent 9c16b38 commit c3b9264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Web/Handler/HTTPDaemon.pm
Expand Up @@ -3,7 +3,7 @@ use v6;
use HTTP::Daemon;

class Web::Handler::HTTPDaemon {
method run(Callable &app, :$port = 8888) {
method run(&app, :$port = 8888) {
my HTTP::Daemon $d .= new(LocalPort => $port);
while my $c = $d.accept and my HTTP::Request $r = $c.get_request {
my $qs = $r.url.path ~~ / '?' (.*) $/ ?? $0 !! '';
Expand Down

0 comments on commit c3b9264

Please sign in to comment.