]> gitweb.ps.run Git - ps-cgit/commitdiff
snapshot: don't reimplement cgit_print_error_page()
authorJohn Keeping <john@keeping.me.uk>
Fri, 14 Aug 2015 11:47:09 +0000 (12:47 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 14 Aug 2015 13:46:51 +0000 (15:46 +0200)
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 <john@keeping.me.uk>

No differences found