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