diff options
| author | John Keeping <[email protected]> | 2015-08-14 11:47:09 +0000 |
|---|---|---|
| committer | Jason A. Donenfeld <[email protected]> | 2015-08-14 13:46:51 +0000 |
| commit | fd00e71ab7cf1eabd8d1fc2e5980055350849034 (patch) | |
| tree | 0f206d7e919bcd301f17278fd0e9c37fb2559a12 /ui-diff.c | |
| parent | snapshot: use cgit_print_error_page() for HTTP status codes (diff) | |
| download | cgit-fd00e71ab7cf1eabd8d1fc2e5980055350849034.tar.gz cgit-fd00e71ab7cf1eabd8d1fc2e5980055350849034.zip | |
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 <[email protected]>
Diffstat (limited to 'ui-diff.c')
0 files changed, 0 insertions, 0 deletions
