Unidiff1 files changed, 2 insertions, 0 deletions
|
diff --git a/cgit.c b/cgit.c index 2aef44d..38f0fdd 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -48,8 +48,10 @@ void config_cb(const char *name, const char *value) |
48 | if (!ctx.cfg.virtual_root && (!strcmp(value, "/"))) |
48 | if (!ctx.cfg.virtual_root && (!strcmp(value, "/"))) |
49 | ctx.cfg.virtual_root = ""; |
49 | ctx.cfg.virtual_root = ""; |
50 | } else if (!strcmp(name, "nocache")) |
50 | } else if (!strcmp(name, "nocache")) |
51 | ctx.cfg.nocache = atoi(value); |
51 | ctx.cfg.nocache = atoi(value); |
| |
52 | else if (!strcmp(name, "noheader")) |
| |
53 | ctx.cfg.noheader = atoi(value); |
52 | else if (!strcmp(name, "snapshots")) |
54 | else if (!strcmp(name, "snapshots")) |
53 | ctx.cfg.snapshots = cgit_parse_snapshots_mask(value); |
55 | ctx.cfg.snapshots = cgit_parse_snapshots_mask(value); |
54 | else if (!strcmp(name, "enable-index-links")) |
56 | else if (!strcmp(name, "enable-index-links")) |
55 | ctx.cfg.enable_index_links = atoi(value); |
57 | ctx.cfg.enable_index_links = atoi(value); |
|