From 3484b918c162be76cbe0e560e30466eda3f9ff09 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 24 Sep 2026 20:37:17 -1000 Subject: Send a charset only with a text type Archives, packs and the HEAD file went out as octet-stream or gzip with a UTF-8 charset on the end, since only the plain and about pages cleared it. --- source/ui-summary.c | 1 - 1 file changed, 1 deletion(-) (limited to 'source/ui-summary.c') diff --git a/source/ui-summary.c b/source/ui-summary.c index eb04ecd..61cd6ac 100644 --- a/source/ui-summary.c +++ b/source/ui-summary.c @@ -138,7 +138,6 @@ void cgit_print_repo_readme(const char *path) mimetype = cgit_get_mimetype_for_filename(path); if (mimetype && (starts_with(mimetype, "image/") || starts_with(mimetype, "video/"))) { ctx.page.mimetype = mimetype; - ctx.page.charset = NULL; cgit_print_plain(); free(mimetype); return; -- cgit 2.12.1