diff options
| -rw-r--r-- | ui-clone.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -71,8 +71,10 @@ static void send_file(char *path) | |||
| 71 | 71 | ||
| 72 | void cgit_clone_info(void) | 72 | void cgit_clone_info(void) |
| 73 | { | 73 | { |
| 74 | if (!ctx.qry.path || strcmp(ctx.qry.path, "refs")) | 74 | if (!ctx.qry.path || strcmp(ctx.qry.path, "refs")) { |
| 75 | html_status(400, "Bad request", 0); | ||
| 75 | return; | 76 | return; |
| 77 | } | ||
| 76 | 78 | ||
| 77 | ctx.page.mimetype = "text/plain"; | 79 | ctx.page.mimetype = "text/plain"; |
| 78 | ctx.page.filename = "info/refs"; | 80 | ctx.page.filename = "info/refs"; |
