]> gitweb.ps.run Git - ps-cgit/blobdiff - shared.c
Add struct cgit_page to cgit_context
[ps-cgit] / shared.c
index 808e6745376bf67f4101a7bfa395a3329ea22587..539d533807ce1cfa728515eaeee01d14c526ef3e 100644 (file)
--- a/shared.c
+++ b/shared.c
@@ -14,8 +14,6 @@ int cgit_cmd;
 
 const char *cgit_version = CGIT_VERSION;
 
-int htmlfd = 0;
-
 void cgit_prepare_context(struct cgit_context *ctx)
 {
        memset(ctx, 0, sizeof(ctx));
@@ -37,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)