]> gitweb.ps.run Git - ps-cgit/blobdiff - shared.c
Add struct cgit_page to cgit_context
[ps-cgit] / shared.c
index 76e10d044660f0112cd2f88b81d9aa41f7a9105d..539d533807ce1cfa728515eaeee01d14c526ef3e 100644 (file)
--- a/shared.c
+++ b/shared.c
@@ -35,6 +35,9 @@ void cgit_prepare_context(struct cgit_context *ctx)
        ctx->cfg.robots = "index, nofollow";
        ctx->cfg.root_title = "Git repository browser";
        ctx->cfg.script_name = CGIT_SCRIPT_NAME;
+       ctx->page.mimetype = "text/html";
+       ctx->page.charset = PAGE_ENCODING;
+       ctx->page.filename = NULL;
 }
 
 int cgit_get_cmd_index(const char *cmd)