From: John Keeping Date: Fri, 14 Aug 2015 11:47:09 +0000 (+0100) Subject: snapshot: don't reimplement cgit_print_error_page() X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/fd00e71ab7cf1eabd8d1fc2e5980055350849034?ds=inline;hp=fd00e71ab7cf1eabd8d1fc2e5980055350849034 snapshot: don't reimplement cgit_print_error_page() cgit_print_error_page() has the advantage that it sets a suitable HTTP status code for the response. Note that setting "mimetype" is redundant here since it cannot have changed since being initialized in cgit.c::prepare_context(), so we do not need to worry that cgit_print_error_page() does not set it. Signed-off-by: John Keeping ---