diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Use standard HTTP reason phrases
Diffstat (limited to 'source/ui-clone.c')
| -rw-r--r-- | source/ui-clone.c | 8 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 4 insertions, 4 deletions
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) |
