Unidiff1 files changed, 6 insertions, 0 deletions
|
diff --git a/cgit.c b/cgit.c index 2afc598..513ea12 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -210,2 +210,3 @@ static void prepare_context(struct cgit_context *ctx) |
210 | ctx->page.expires = ctx->page.modified; |
210 | ctx->page.expires = ctx->page.modified; |
| |
211 | ctx->page.etag = NULL; |
211 | } |
212 | } |
@@ -289,2 +290,4 @@ static int prepare_repo_cmd(struct cgit_context *ctx) |
289 | ctx->qry.head = ctx->repo->defbranch; |
290 | ctx->qry.head = ctx->repo->defbranch; |
| |
291 | ctx->page.status = 404; |
| |
292 | ctx->page.statusmsg = "not found"; |
290 | cgit_print_http_headers(ctx); |
293 | cgit_print_http_headers(ctx); |
@@ -433,2 +436,3 @@ int main(int argc, const char **argv) |
433 | const char *cgit_config_env = getenv("CGIT_CONFIG"); |
436 | const char *cgit_config_env = getenv("CGIT_CONFIG"); |
| |
437 | const char *method = getenv("REQUEST_METHOD"); |
434 | const char *path; |
438 | const char *path; |
@@ -479,2 +483,4 @@ int main(int argc, const char **argv) |
479 | ctx.page.expires += ttl*60; |
483 | ctx.page.expires += ttl*60; |
| |
484 | if (method && !strcmp(method, "HEAD")) |
| |
485 | ctx.cfg.nocache = 1; |
480 | if (ctx.cfg.nocache) |
486 | if (ctx.cfg.nocache) |
|