Fix broken favicon requests
This commit is contained in:
parent
917097b26a
commit
93f902a01a
|
@ -41,6 +41,11 @@ $router.post(-> $request, $response {
|
||||||
$response.html($template.render: 'index', %stash);
|
$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
|
# Process the hyperlink
|
||||||
$router.get('/--meta-refresh/**', -> $request, $response {
|
$router.get('/--meta-refresh/**', -> $request, $response {
|
||||||
my Str $return-url = $request.path.subst: /^ '/--meta-refresh/'/, Empty;
|
my Str $return-url = $request.path.subst: /^ '/--meta-refresh/'/, Empty;
|
||||||
|
|
Loading…
Reference in a new issue