all repos — cgit @ 048f195eaf2fedb56987f0c8c89b9fd46375aa87

a hyperfast web frontend for git written in c

snapshot: use cgit_print_error_page() instead of html_status()

This provides a formatted error response rather than a simple HTTP
error.

Signed-off-by: John Keeping <john@keeping.me.uk>
John Keeping john@keeping.me.uk
Fri, 14 Aug 2015 12:47:05 +0100
commit

048f195eaf2fedb56987f0c8c89b9fd46375aa87

parent

2b3e76a9f95c50f55be70dbb1cfa029f5165a535

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M ui-snapshot.cui-snapshot.c

@@ -213,7 +213,7 @@

if (!hex && dwim) { hex = get_ref_from_filename(ctx.repo->url, filename, f); if (hex == NULL) { - html_status(404, "Not found", 0); + cgit_print_error_page(404, "Not found", "Not found"); return; } prefix = xstrdup(filename);