]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
tests: add tests for links with space in path and/or args
[ps-cgit] / ui-shared.c
index 7efae7ab04982bf6d5f557cba1d9cdc9b91f9ede..5aa911956aa3cbf344b437e15aad761f5cd11d86 100644 (file)
@@ -574,7 +574,7 @@ void cgit_print_http_headers(struct cgit_context *ctx)
        else if (ctx->page.mimetype)
                htmlf("Content-Type: %s\n", ctx->page.mimetype);
        if (ctx->page.size)
        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);
+               htmlf("Content-Length: %zd\n", ctx->page.size);
        if (ctx->page.filename)
                htmlf("Content-Disposition: inline; filename=\"%s\"\n",
                      ctx->page.filename);
        if (ctx->page.filename)
                htmlf("Content-Disposition: inline; filename=\"%s\"\n",
                      ctx->page.filename);