]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
about: always ensure page has a trailing slash
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index ed026142a4fce1f9c9f6d94a094a21ec8f9ae87d..baad1c8696fdbd38cf1cd12744cf8c298da9e6dc 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -742,6 +742,9 @@ static void process_request(void)
        if (ctx.repo && prepare_repo_cmd())
                return;
 
+       if (cmd->pre)
+               cmd->pre();
+
        if (cmd->want_layout) {
                cgit_print_http_headers();
                cgit_print_docstart();