author | Lars Hjemli <hjemli@gmail.com> | 2009-06-07 18:43:08 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2009-06-07 18:43:08 (UTC) |
commit | e429fb0cca1e8c78da0ec38fe578bafdeec65534 (patch) (unidiff) | |
tree | 58c172f939509879045192fb8f1ba1d79160e67f /ui-shared.c | |
parent | 45e7fcecc1117440e6274ce3c6ab7d893c4986ee (diff) | |
download | cgit-e429fb0cca1e8c78da0ec38fe578bafdeec65534.zip cgit-e429fb0cca1e8c78da0ec38fe578bafdeec65534.tar.gz cgit-e429fb0cca1e8c78da0ec38fe578bafdeec65534.tar.bz2 |
Return http statuscode 404 on unknown branch
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-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 de77bbf..2630f23 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -457,4 +457,6 @@ void cgit_print_age(time_t t, time_t max_relative, char *format) | |||
457 | void cgit_print_http_headers(struct cgit_context *ctx) | 457 | void cgit_print_http_headers(struct cgit_context *ctx) |
458 | { | 458 | { |
459 | if (ctx->page.status) | ||
460 | htmlf("Status: %d %s\n", ctx->page.status, ctx->page.statusmsg); | ||
459 | if (ctx->page.mimetype && ctx->page.charset) | 461 | if (ctx->page.mimetype && ctx->page.charset) |
460 | htmlf("Content-Type: %s; charset=%s\n", ctx->page.mimetype, | 462 | htmlf("Content-Type: %s; charset=%s\n", ctx->page.mimetype, |