about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepoGitSummary.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-03-03 00:55:07 +0000
committerEric Wong <e@80x24.org>2017-03-03 00:55:07 +0000
commitb9b12ac92230cc6807623293b93cc22e5eb33684 (patch)
treee05c029ebd6a16bbd9dd5045dcff7d2701794235 /lib/PublicInbox/RepoGitSummary.pm
parent16b1fbe36cc39a351ef9810b9018d36df833a941 (diff)
downloadpublic-inbox-b9b12ac92230cc6807623293b93cc22e5eb33684.tar.gz
For everything with relevant content, we'll try to set
UTF-8 charset and reduce duplication when generating
response headers.
Diffstat (limited to 'lib/PublicInbox/RepoGitSummary.pm')
-rw-r--r--lib/PublicInbox/RepoGitSummary.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/RepoGitSummary.pm b/lib/PublicInbox/RepoGitSummary.pm
index 96ae9be9..ee9436f3 100644
--- a/lib/PublicInbox/RepoGitSummary.pm
+++ b/lib/PublicInbox/RepoGitSummary.pm
@@ -32,7 +32,7 @@ sub for_each_ref {
         my $refs = $git->popen(qw(for-each-ref --sort=-creatordate),
                                 EACH_REF_FMT, "--count=$count",
                                 qw(refs/heads/ refs/tags/));
-        $fh = $res->([200, ['Content-Type', 'text/html; charset=UTF-8']]);
+        $fh = $res->($self->rt(200, 'html'));
         # ref names are unpredictable in length and requires tables :<
         $fh->write($self->html_start($req,
                                 "$repo->{repo}: overview") .