]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
ui-shared: add support for NO_HTTP=1/--nohttp
[ps-cgit] / ui-shared.c
index 538dddaed6edcfb1f6e29917a6b8021ba8e00186..4175bd8d335c710ab24c40b282813d4e8ccf6e96 100644 (file)
@@ -455,7 +455,7 @@ void cgit_print_age(time_t t, time_t max_relative, char *format)
 
 void cgit_print_http_headers(struct cgit_context *ctx)
 {
-       if (ctx->cfg.embedded)
+       if (ctx->env.no_http && !strcmp(ctx->env.no_http, "1"))
                return;
 
        if (ctx->page.status)