Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[Web::Handler::HTTPDaemon] compensate for Rakudo fix

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...
commit c3b9264c9db8adf7920a6fb4c3a1846e581c27c7 1 parent 9c16b38
@masak authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Web/Handler/HTTPDaemon.pm
View
2  lib/Web/Handler/HTTPDaemon.pm
@@ -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 !! '';
Please sign in to comment.
Something went wrong with that request. Please try again.