From e5b326b5130462556476d082e03dd85f90e7411f Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 27 Aug 2026 05:42:02 -1000 Subject: Use standard HTTP reason phrases --- source/ui-clone.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/ui-clone.c') diff --git a/source/ui-clone.c b/source/ui-clone.c index 70e4446..75e5f95 100644 --- a/source/ui-clone.c +++ b/source/ui-clone.c @@ -105,13 +105,13 @@ static void send_file(const char *path) if (stat(path, &st)) { switch (errno) { case ENOENT: - cgit_print_error_page(404, "Not found", "Not found"); + cgit_print_error_page(404, "Not Found", "Not found"); break; case EACCES: cgit_print_error_page(403, "Forbidden", "Forbidden"); break; default: - cgit_print_error_page(400, "Bad request", "Bad request"); + cgit_print_error_page(400, "Bad Request", "Bad request"); } return; } @@ -128,7 +128,7 @@ static void send_file(const char *path) void cgit_clone_info(void) { if (!ctx.qry.path || strcmp(ctx.qry.path, "refs")) { - cgit_print_error_page(400, "Bad request", "Bad request"); + cgit_print_error_page(400, "Bad Request", "Bad request"); return; } @@ -160,7 +160,7 @@ void cgit_clone_objects(void) return; err: - cgit_print_error_page(400, "Bad request", "Bad request"); + cgit_print_error_page(400, "Bad Request", "Bad request"); } void cgit_clone_head(void) -- cgit v2.8.0