Mercurial > paster
diff page-new.c @ 64:e8d8eaa0da53
pasterd: support <title> in header
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 26 May 2022 13:28:10 +0200 |
parents | a93f4e3313e9 |
children | 1a98bc0daa49 |
line wrap: on
line diff
--- a/page-new.c Thu May 26 13:09:33 2022 +0200 +++ b/page-new.c Thu May 26 13:28:10 2022 +0200 @@ -148,7 +148,7 @@ } if (!database_insert(&paste)) - page(r, NULL, KHTTP_500, "500.html"); + page(r, NULL, KHTTP_500, "500.html", "500"); else { if (raw) { /* For CLI users (e.g. paster) just print the location. */ @@ -184,7 +184,8 @@ .arg = &tp }; - page(r, &kt, KHTTP_200, "pages/new.html"); + page(r, &kt, KHTTP_200, "pages/new.html", + paste ? paste->title : "Create new paste"); } void