diff --git a/lib/Hyperlink-Redirect.rakumod b/lib/Hyperlink-Redirect.rakumod index 28e3dbc..586e42f 100644 --- a/lib/Hyperlink-Redirect.rakumod +++ b/lib/Hyperlink-Redirect.rakumod @@ -41,6 +41,11 @@ $router.post(-> $request, $response { $response.html($template.render: 'index', %stash); }); +# Don't try to process favicon as a hyperlink +$router.get('/favicon.ico', -> $request, $response { + $response.status(204) +}); + # Process the hyperlink $router.get('/--meta-refresh/**', -> $request, $response { my Str $return-url = $request.path.subst: /^ '/--meta-refresh/'/, Empty;