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-commit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/ui-commit.c') diff --git a/source/ui-commit.c b/source/ui-commit.c index 5f010fd..8a31010 100644 --- a/source/ui-commit.c +++ b/source/ui-commit.c @@ -95,13 +95,13 @@ void cgit_print_commit(char *hex, const char *prefix) hex = ctx.qry.head; if (repo_get_oid(the_repository, hex, &oid)) { - cgit_print_error_page(400, "Bad request", + cgit_print_error_page(400, "Bad Request", "Bad object id: %s", hex); return; } commit = lookup_commit_reference(the_repository, &oid); if (!commit) { - cgit_print_error_page(404, "Not found", + cgit_print_error_page(404, "Not Found", "Bad commit reference: %s", hex); return; } -- cgit v2.8.0