]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/HTTPD.pm
httpd: (cleanup) use reference instead of *glob
[public-inbox.git] / lib / PublicInbox / HTTPD.pm
index b0bf94adf7dda314d3d4bb2d134874334d1d5b75..d10ec51c373e041640c572e7c90a0b274db38df6 100644 (file)
@@ -39,10 +39,7 @@ sub new {
                # The rest of our PSGI code is generic, relying
                # on "pull" model using "getline" to prevent
                # over-buffering.
-               'pi-httpd.async' => do {
-                       no warnings 'once';
-                       *pi_httpd_async
-               },
+               'pi-httpd.async' => \&pi_httpd_async
        );
        bless {
                app => $app,