Mercurial > paster
comparison http.c @ 64:e8d8eaa0da53
pasterd: support <title> in header
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 26 May 2022 13:28:10 +0200 |
parents | ecb0b90d94d8 |
children | 1a98bc0daa49 |
comparison
equal
deleted
inserted
replaced
63:1075658abc74 | 64:e8d8eaa0da53 |
---|---|
73 assert(req); | 73 assert(req); |
74 | 74 |
75 log_debug("http: accessing page '%s'", req->path); | 75 log_debug("http: accessing page '%s'", req->path); |
76 | 76 |
77 if (req->page == PAGE_LAST) | 77 if (req->page == PAGE_LAST) |
78 page(req, NULL, KHTTP_404, "pages/404.html"); | 78 page(req, NULL, KHTTP_404, "pages/404.html", "404"); |
79 else | 79 else |
80 handlers[req->page](req); | 80 handlers[req->page](req); |
81 } | 81 } |
82 | 82 |
83 void | 83 void |