-rw-r--r-- | ui-shared.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui-shared.c b/ui-shared.c index 5ce2bc5..29036d0 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -464,12 +464,14 @@ void cgit_print_age(time_t t, time_t max_relative, char *format) | |||
464 | htmlf("<span class='age-years'>%.0f years</span>", | 464 | htmlf("<span class='age-years'>%.0f years</span>", |
465 | secs * 1.0 / TM_YEAR); | 465 | secs * 1.0 / TM_YEAR); |
466 | } | 466 | } |
467 | 467 | ||
468 | void cgit_print_http_headers(struct cgit_context *ctx) | 468 | void cgit_print_http_headers(struct cgit_context *ctx) |
469 | { | 469 | { |
470 | if (ctx->page.status) | ||
471 | htmlf("Status: %d %s\n", ctx->page.status, ctx->page.statusmsg); | ||
470 | if (ctx->page.mimetype && ctx->page.charset) | 472 | if (ctx->page.mimetype && ctx->page.charset) |
471 | htmlf("Content-Type: %s; charset=%s\n", ctx->page.mimetype, | 473 | htmlf("Content-Type: %s; charset=%s\n", ctx->page.mimetype, |
472 | ctx->page.charset); | 474 | ctx->page.charset); |
473 | else if (ctx->page.mimetype) | 475 | else if (ctx->page.mimetype) |
474 | htmlf("Content-Type: %s\n", ctx->page.mimetype); | 476 | htmlf("Content-Type: %s\n", ctx->page.mimetype); |
475 | if (ctx->page.size) | 477 | if (ctx->page.size) |