index: abort before body for HEAD requests
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 29 Aug 2020 16:30:31 +0000 (18:30 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Fri, 3 Jun 2022 22:53:43 +0000 (00:53 +0200)
index.plp

index 6dfad817264ab414dd8446e1ef730ff33e2f4659..c20b44b09be85cfd20b5a781e7d5c56cff1799d2 100644 (file)
--- a/index.plp
+++ b/index.plp
@@ -18,6 +18,7 @@ Html({
        data => ['UPDATE'],
 });
 
+exit if $ENV{REQUEST_METHOD} eq 'HEAD';
 :>
 <h1>Shiar's cheat sheets</h1>