Unidiff1 files changed, 0 insertions, 1 deletions
|
diff --git a/cgit.c b/cgit.c index c82587b..6e5215e 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -280,25 +280,24 @@ static int prepare_repo_cmd(struct cgit_context *ctx) |
280 | } |
280 | } |
281 | return 0; |
281 | return 0; |
282 | } |
282 | } |
283 | |
283 | |
284 | static void process_request(void *cbdata) |
284 | static void process_request(void *cbdata) |
285 | { |
285 | { |
286 | struct cgit_context *ctx = cbdata; |
286 | struct cgit_context *ctx = cbdata; |
287 | struct cgit_cmd *cmd; |
287 | struct cgit_cmd *cmd; |
288 | |
288 | |
289 | cmd = cgit_get_cmd(ctx); |
289 | cmd = cgit_get_cmd(ctx); |
290 | if (!cmd) { |
290 | if (!cmd) { |
291 | ctx->page.title = "cgit error"; |
291 | ctx->page.title = "cgit error"; |
292 | ctx->repo = NULL; |
| |
293 | cgit_print_http_headers(ctx); |
292 | cgit_print_http_headers(ctx); |
294 | cgit_print_docstart(ctx); |
293 | cgit_print_docstart(ctx); |
295 | cgit_print_pageheader(ctx); |
294 | cgit_print_pageheader(ctx); |
296 | cgit_print_error("Invalid request"); |
295 | cgit_print_error("Invalid request"); |
297 | cgit_print_docend(); |
296 | cgit_print_docend(); |
298 | return; |
297 | return; |
299 | } |
298 | } |
300 | |
299 | |
301 | if (cmd->want_repo && !ctx->repo) { |
300 | if (cmd->want_repo && !ctx->repo) { |
302 | cgit_print_http_headers(ctx); |
301 | cgit_print_http_headers(ctx); |
303 | cgit_print_docstart(ctx); |
302 | cgit_print_docstart(ctx); |
304 | cgit_print_pageheader(ctx); |
303 | cgit_print_pageheader(ctx); |
|