X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/87a89aed41136d388537b146000c4af6c1135a8c..7e5c048505efe1902fb476cc2cb3160ff7df013d:/ui-shared.c diff --git a/ui-shared.c b/ui-shared.c index 749ea35..29036d0 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -467,6 +467,8 @@ void cgit_print_age(time_t t, time_t max_relative, char *format) void cgit_print_http_headers(struct cgit_context *ctx) { + if (ctx->page.status) + htmlf("Status: %d %s\n", ctx->page.status, ctx->page.statusmsg); if (ctx->page.mimetype && ctx->page.charset) htmlf("Content-Type: %s; charset=%s\n", ctx->page.mimetype, ctx->page.charset); @@ -503,7 +505,8 @@ void cgit_print_docstart(struct cgit_context *ctx) html("'/>\n"); } if (host && ctx->repo) { - html("