]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
Implement plain view
[ps-cgit] / ui-shared.c
index 197ee37409b7497d27c1ea766ebd6d4405d843bc..4408969c4a3a244b98d2d6678fcdff2c93a03a04 100644 (file)
@@ -418,6 +418,8 @@ void cgit_print_http_headers(struct cgit_context *ctx)
                      ctx->page.charset);
        else if (ctx->page.mimetype)
                htmlf("Content-Type: %s\n", ctx->page.mimetype);
+       if (ctx->page.size)
+               htmlf("Content-Length: %ld\n", ctx->page.size);
        if (ctx->page.filename)
                htmlf("Content-Disposition: inline; filename=\"%s\"\n",
                      ctx->page.filename);