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 '')
| -rw-r--r-- | source/ui-snapshot.c | 14 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 7 insertions, 7 deletions
diff --git a/source/ui-snapshot.c b/source/ui-snapshot.c index c3cb27a..7da7252 100644 --- a/source/ui-snapshot.c +++ b/source/ui-snapshot.c @@ -197,12 +197,12 @@ static int send_snapshot(const struct cgit_snapshot_format *format, struct object_id oid; if (repo_get_oid(the_repository, hex, &oid)) { - cgit_print_error_page(404, "Not found", + cgit_print_error_page(404, "Not Found", "Bad object id: %s", hex); return 1; } if (!lookup_commit_reference(the_repository, &oid)) { - cgit_print_error_page(400, "Bad request", + cgit_print_error_page(400, "Bad Request", "Not a commit reference: %s", hex); return 1; } @@ -224,14 +224,14 @@ static int send_sig(const struct cgit_snapshot_format *format, char *buf; if (!note) { - cgit_print_error_page(404, "Not found", + cgit_print_error_page(404, "Not Found", "No signature for %s", archive_name); return 0; } buf = odb_read_object(the_repository->objects, note, &type, &size); if (!buf) { - cgit_print_error_page(404, "Not found", "Not found"); + cgit_print_error_page(404, "Not Found", "Not found"); return 0; } @@ -316,7 +316,7 @@ void cgit_print_snapshot(const char *head, const char *hex, char *prefix = NULL; if (!filename) { - cgit_print_error_page(400, "Bad request", + cgit_print_error_page(400, "Bad Request", "No snapshot name specified"); return; } @@ -331,7 +331,7 @@ void cgit_print_snapshot(const char *head, const char *hex, f = find_format(filename); if (!f || (!sig_filename && !(ctx.repo->snapshots & cgit_snapshot_format_bit(f)))) { - cgit_print_error_page(400, "Bad request", + cgit_print_error_page(400, "Bad Request", "Unsupported snapshot format: %s", filename); return; } @@ -339,7 +339,7 @@ void cgit_print_snapshot(const char *head, const char *hex, if (!hex && dwim) { hex = ref_from_filename(ctx.repo, filename, f); if (!hex) { - cgit_print_error_page(404, "Not found", "Not found"); + cgit_print_error_page(404, "Not Found", "Not found"); return; } prefix = xstrdup(filename); |
