]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/WwwAtomStream.pm
www*stream: favor \&close instead of *close
[public-inbox.git] / lib / PublicInbox / WwwAtomStream.pm
index 9ec1383dada276b101a35df7ea3809692609567e..cb7ffe353f54838ed2d9559bd0ac43113096adef 100644 (file)
@@ -23,7 +23,7 @@ sub new {
        my ($class, $ctx, $cb) = @_;
        $ctx->{emit_header} = 1;
        $ctx->{feed_base_url} = $ctx->{-inbox}->base_url($ctx->{env});
-       bless { cb => $cb || *close, ctx => $ctx }, $class;
+       bless { cb => $cb || \&close, ctx => $ctx }, $class;
 }
 
 sub response {