]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
refactor get_mimetype_from_file() to get_mimetype_for_filename()
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index 3a97563c11fc5095fce52c63d57ca2a597160efd..28a2f149c6cd41d8c113acf4d6e9db254a82685f 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -733,19 +733,7 @@ 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();
-               cgit_print_pageheader();
-       }
-
        cmd->fn();
-
-       if (cmd->want_layout)
-               cgit_print_docend();
 }
 
 static int cmp_repos(const void *a, const void *b)