about: always ensure page has a trailing slash
Otherwise we can't easily embed links to other /about/ pages. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
这个提交包含在:
@ -689,6 +689,14 @@ void cgit_print_http_headers(void)
|
||||
exit(0);
|
||||
}
|
||||
|
||||
void cgit_redirect(const char *url, bool permanent)
|
||||
{
|
||||
htmlf("Status: %d %s\n", permanent ? 301 : 302, permanent ? "Moved" : "Found");
|
||||
htmlf("Location: %s\n", url);
|
||||
htmlf("\n");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
static void print_rel_vcs_link(const char *url)
|
||||
{
|
||||
html("<link rel='vcs-git' href='");
|
||||
|
在新工单中引用
屏蔽一个用户