mirror of
https://git.zx2c4.com/cgit
synced 2025-07-24 12:45:10 +02:00
ui-shared: add cgit_print_error_page() function
This will allow us to generate error responses with the correct HTTP response code without needing all of the layout boilerplate. Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
parent
aa12084f98
commit
aec1204a54
2 changed files with 16 additions and 0 deletions
|
@ -64,6 +64,8 @@ extern void cgit_print_http_headers(void);
|
|||
extern void cgit_redirect(const char *url, bool permanent);
|
||||
extern void cgit_print_docstart(void);
|
||||
extern void cgit_print_docend();
|
||||
__attribute__((format (printf,3,4)))
|
||||
extern void cgit_print_error_page(int code, const char *msg, const char *fmt, ...);
|
||||
extern void cgit_print_pageheader(void);
|
||||
extern void cgit_print_filemode(unsigned short mode);
|
||||
extern void cgit_print_snapshot_links(const char *repo, const char *head,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue