]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-patch.c
Bump version.
[ps-cgit] / ui-patch.c
index 3086608539dd04ed6719950d1686be416cd45bf8..fc6c145feff4c151fb6d461750b01f3b3f377e0e 100644 (file)
@@ -59,7 +59,7 @@ void cgit_print_patch(const char *new_rev, const char *old_rev,
        patchname = fmt("%s.patch", rev_range);
        ctx.page.mimetype = "text/plain";
        ctx.page.filename = patchname;
-       cgit_print_http_headers(&ctx);
+       cgit_print_http_headers();
 
        if (ctx.cfg.noplainemail) {
                rev_argv[2] = "--format=format:From %H Mon Sep 17 00:00:00 "
@@ -82,4 +82,6 @@ void cgit_print_patch(const char *new_rev, const char *old_rev,
                log_tree_commit(&rev, commit);
                printf("-- \ncgit %s\n\n", cgit_version);
        }
+
+       fflush(stdout);
 }